mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:15:15 +00:00
UI: Programs: Tweak group's font
This commit is contained in:
parent
f39a6680b1
commit
55b20a65f4
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user