From aa4931e8c613f742cb05da77dfdad73c6f3008c9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 10 Nov 2013 07:06:26 +0900 Subject: Show a cylinder widget in the dive planner This is intended to allow the user to provide the gases / cylinders that she will be diving with. With that information the planner can warn the user about insufficient gases, but more importantly it can show relevant gases in the gas select drop down. Right now the add cylinder button doesn't add a cylinder - that's a problem. Signed-off-by: Dirk Hohndel --- qt-ui/models.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/models.h') diff --git a/qt-ui/models.h b/qt-ui/models.h index 32ce3df47..78313c963 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -82,6 +82,7 @@ public: enum Column {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE}; explicit CylindersModel(QObject* parent = 0); + static CylindersModel *instance(); /*reimp*/ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; /*reimp*/ int rowCount(const QModelIndex& parent = QModelIndex()) const; /*reimp*/ Qt::ItemFlags flags(const QModelIndex& index) const; -- cgit v1.2.3-70-g09d2