make font settings cross platform
This commit is contained in:
parent
2561b03583
commit
f260bc2b0c
5 changed files with 12 additions and 13 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <QFont>
|
||||
#include <QFontDatabase>
|
||||
|
||||
SaleModel::SaleModel(Marketplace* market, QObject* parent) : QAbstractItemModel(parent)
|
||||
{
|
||||
|
@ -83,8 +84,7 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const
|
|||
case 0:
|
||||
return myFont;
|
||||
case 1:
|
||||
myFont.setFamily("monospace");
|
||||
return myFont;
|
||||
return QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
||||
default:
|
||||
return myFont;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue