workaround for QTBUG-54623

This commit is contained in:
Martin Brodbeck 2018-10-23 14:13:17 +02:00
parent 8e545e5c5d
commit 4f782568cf
3 changed files with 12 additions and 3 deletions

View file

@ -22,6 +22,9 @@ QVariant BasketModel::data(const QModelIndex& index, int role) const
QFont myFont;
QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
if (myFixedFont.fixedPitch() == false) {
myFixedFont.setFamily("monospace");
}
switch (index.column()) {
case 0:
@ -130,4 +133,4 @@ bool BasketModel::removeRows(int row, int count, const QModelIndex& parent)
marketplace_->getBasket().end());
emit endRemoveRows();
return true;
}
}