UI: Programs: Tweak group's font

This commit is contained in:
Nodir Temirkhodjaev 2022-09-22 09:34:52 +03:00
parent f39a6680b1
commit 55b20a65f4
2 changed files with 0 additions and 18 deletions

View File

@ -110,10 +110,6 @@ QVariant AppListModel::data(const QModelIndex &index, int role) const
case Qt::DecorationRole:
return dataDecoration(index);
// Font
case Qt::FontRole:
return dataFont(index);
// Foreground
case Qt::ForegroundRole:
return dataForeground(index);
@ -181,19 +177,6 @@ QVariant AppListModel::dataDecoration(const QModelIndex &index) const
return QVariant();
}
QVariant AppListModel::dataFont(const QModelIndex &index) const
{
const int column = index.column();
if (column == 2) {
QFont font;
font.setWeight(QFont::DemiBold);
return font;
}
return QVariant();
}
QVariant AppListModel::dataForeground(const QModelIndex &index) const
{
const int column = index.column();

View File

@ -66,7 +66,6 @@ private:
QVariant dataDisplay(const QModelIndex &index) const;
QVariant dataDisplayState(const AppRow &appRow) const;
QVariant dataDecoration(const QModelIndex &index) const;
QVariant dataFont(const QModelIndex &index) const;
QVariant dataForeground(const QModelIndex &index) const;
QVariant dataTextAlignment(const QModelIndex &index) const;