From 55b20a65f403874ea6546067a2ee93573b0ddd77 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 22 Sep 2022 09:34:52 +0300 Subject: [PATCH] UI: Programs: Tweak group's font --- src/ui/model/applistmodel.cpp | 17 ----------------- src/ui/model/applistmodel.h | 1 - 2 files changed, 18 deletions(-) diff --git a/src/ui/model/applistmodel.cpp b/src/ui/model/applistmodel.cpp index ea86a7b0..568935e0 100644 --- a/src/ui/model/applistmodel.cpp +++ b/src/ui/model/applistmodel.cpp @@ -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(); diff --git a/src/ui/model/applistmodel.h b/src/ui/model/applistmodel.h index c2e9d572..2d516bf7 100644 --- a/src/ui/model/applistmodel.h +++ b/src/ui/model/applistmodel.h @@ -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;