Browse Source

small code improvement

allow_new_sellers
Martin Brodbeck 4 years ago
parent
commit
271aac0914
  1. 5
      src/gui/basketmodel.cpp

5
src/gui/basketmodel.cpp

@ -20,20 +20,19 @@ QVariant BasketModel::data(const QModelIndex& index, int role) const
{
if (role == Qt::FontRole) {
QFont myFont;
myFont.setPointSize(14);
QFont myFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
myFixedFont.setPointSize(14);
switch (index.column()) {
case 0:
[[fallthrough]];
case 1:
myFixedFont.setPointSize(11);
return myFixedFont;
case 2:
myFixedFont.setPointSize(myFixedFont.pointSize() + 3);
return myFixedFont;
case 3:
myFixedFont.setPointSize(myFixedFont.pointSize() + 3);
return myFixedFont;
}
}

Loading…
Cancel
Save