diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 14:30:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 14:43:07 -0700 |
commit | 04e59a0e1cdb32c5091fc4bc0d692f00821ab849 (patch) | |
tree | ed0c673ab4b680d236d67e961a28390fe31f0a5c /qt-ui/models.h | |
parent | 5c2ce0ac200cbf4b37a9765148b78d3091b5cd9f (diff) | |
download | subsurface-04e59a0e1cdb32c5091fc4bc0d692f00821ab849.tar.gz |
Hook up adding a weightsystem
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index 46da9e51b..9a4602f18 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -56,6 +56,8 @@ private: /* Encapsulation of the Weight Model, that represents * the current weights on a dive. */ class WeightModel : public QAbstractTableModel { +Q_OBJECT +public: enum Column {TYPE, WEIGHT}; /*reimp*/ QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; /*reimp*/ int columnCount(const QModelIndex& parent = QModelIndex()) const; |