summaryrefslogtreecommitdiffstats
path: root/qt-models/models.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/models.h')
-rw-r--r--qt-models/models.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-models/models.h b/qt-models/models.h
index ab8130a57..445e3a2a6 100644
--- a/qt-models/models.h
+++ b/qt-models/models.h
@@ -33,6 +33,17 @@ slots:
void repopulate();
};
+class DiveTypeSelectionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ static DiveTypeSelectionModel *instance();
+ Qt::ItemFlags flags(const QModelIndex &index) const;
+ virtual QVariant data(const QModelIndex &index, int role) const;
+public
+slots:
+ void repopulate();
+};
+
class LanguageModel : public QAbstractListModel {
Q_OBJECT