summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-01 14:30:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-01 14:43:07 -0700
commit04e59a0e1cdb32c5091fc4bc0d692f00821ab849 (patch)
treeed0c673ab4b680d236d67e961a28390fe31f0a5c /qt-ui/models.h
parent5c2ce0ac200cbf4b37a9765148b78d3091b5cd9f (diff)
downloadsubsurface-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.h2
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;