summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-11 11:13:16 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-11 11:13:16 -0300
commitfac316865c083789eb1254abb0ddf2f056a09036 (patch)
tree39f66d53ebee1f60f577810a1a4861b5cec80b7b /qt-ui/models.h
parenta4efa8c444da9de1dd68125dca777d5bc8cbc693 (diff)
downloadsubsurface-fac316865c083789eb1254abb0ddf2f056a09036.tar.gz
Another Model Cleanup
Conversion of the WSInfoModel, that populates the list of weigthsystems in the Equipment tab. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index 5e3d07121..3f73c40ef 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -55,7 +55,7 @@ private:
};
/* Encapsulate ws_info */
-class WSInfoModel : public QAbstractTableModel {
+class WSInfoModel : public CleanerTableModel {
Q_OBJECT
public:
static WSInfoModel* instance();
@@ -63,8 +63,6 @@ public:
enum Column {DESCRIPTION, GR};
WSInfoModel();
- /*reimp*/ QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
- /*reimp*/ int columnCount(const QModelIndex& parent = QModelIndex()) const;
/*reimp*/ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
/*reimp*/ int rowCount(const QModelIndex& parent = QModelIndex()) const;
/*reimp*/ bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex());