mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a4efa8c444
commit
fac316865c
2 changed files with 3 additions and 34 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue