diff options
Diffstat (limited to 'qt-models/cleanertablemodel.cpp')
-rw-r--r-- | qt-models/cleanertablemodel.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qt-models/cleanertablemodel.cpp b/qt-models/cleanertablemodel.cpp index 6a542ef27..36b0f4e76 100644 --- a/qt-models/cleanertablemodel.cpp +++ b/qt-models/cleanertablemodel.cpp @@ -2,6 +2,24 @@ #include "cleanertablemodel.h" #include "core/metrics.h" +const QPixmap &trashIcon() +{ + static QPixmap trash = QPixmap(":list-remove-icon").scaledToHeight(defaultIconMetrics().sz_small); + return trash; +} + +const QPixmap &trashForbiddenIcon() +{ + static QPixmap trash = QPixmap(":list-remove-disabled-icon").scaledToHeight(defaultIconMetrics().sz_small); + return trash; +} + +const QPixmap &editIcon() +{ + static QPixmap edit = QPixmap(":edit-icon").scaledToHeight(defaultIconMetrics().sz_small); + return edit; +} + CleanerTableModel::CleanerTableModel(QObject *parent) : QAbstractTableModel(parent) { } |