[Fix #6] Increase Font size for basket view
This commit is contained in:
parent
337462f010
commit
42a1a3151f
2 changed files with 9 additions and 3 deletions
|
@ -20,16 +20,21 @@ 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:
|
||||
return QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
||||
myFixedFont.setPointSize(11);
|
||||
return myFixedFont;
|
||||
case 2:
|
||||
return myFont;
|
||||
return myFixedFont;
|
||||
case 3:
|
||||
return QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
||||
return myFixedFont;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue