diff options
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index 8302acefa..88e76a46f 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -10,6 +10,7 @@ #include <QAbstractTableModel> #include <QCoreApplication> #include <QStringList> +#include <QStringListModel> #include "../dive.h" #include "../divelist.h" @@ -298,4 +299,13 @@ public: void setDive(struct dive *divePtr); }; +class GasSelectionModel : public QStringListModel{ + Q_OBJECT +public: + static GasSelectionModel* instance(); + Qt::ItemFlags flags(const QModelIndex& index) const; +public slots: + void repopulate(); +}; + #endif |