summaryrefslogtreecommitdiffstats
path: root/qt-models/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/models.cpp')
-rw-r--r--qt-models/models.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index 69a276bfb..637a2d3b1 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -15,6 +15,7 @@
#include "gettextfromc.h"
#include "display.h"
#include "color.h"
+#include "cleanertablemodel.h"
#include <QCoreApplication>
#include <QDebug>
@@ -27,37 +28,6 @@
#include <QMessageBox>
#include <QStringListModel>
-CleanerTableModel::CleanerTableModel(QObject *parent) : QAbstractTableModel(parent)
-{
-}
-
-int CleanerTableModel::columnCount(const QModelIndex &parent) const
-{
- return headers.count();
-}
-
-QVariant CleanerTableModel::headerData(int section, Qt::Orientation orientation, int role) const
-{
- QVariant ret;
-
- if (orientation == Qt::Vertical)
- return ret;
-
- switch (role) {
- case Qt::FontRole:
- ret = defaultModelFont();
- break;
- case Qt::DisplayRole:
- ret = headers.at(section);
- }
- return ret;
-}
-
-void CleanerTableModel::setHeaderDataStrings(const QStringList &newHeaders)
-{
- headers = newHeaders;
-}
-
static QPixmap *trashIconPixmap;
// initialize the trash icon if necessary