summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-10 07:06:26 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-10 07:07:59 +0900
commitaa4931e8c613f742cb05da77dfdad73c6f3008c9 (patch)
tree596c0158e465931a9539abac643c42139f869d56 /qt-ui/models.h
parent44c9316f14f9be21837583739e8d54e9c6d29569 (diff)
downloadsubsurface-aa4931e8c613f742cb05da77dfdad73c6f3008c9.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h1
1 files changed, 1 insertions, 0 deletions
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;