summaryrefslogtreecommitdiffstats
path: root/qt-models/completionmodels.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-05-28 14:40:07 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-29 14:07:54 -0700
commit338c0f22aabefcfd5a5e87fceb4c82e73af3f5a9 (patch)
tree2e7723c95fcd73a0936c97fa8d1f7632b10b5fb2 /qt-models/completionmodels.h
parent29e7459d6bd922043eb0d6ed0445d28e2f6ed10f (diff)
downloadsubsurface-338c0f22aabefcfd5a5e87fceb4c82e73af3f5a9.tar.gz
Move the models to its own folder
This is an attempt to help share code between the desktop version of Subsurface and the mobile version. More code will be moved around and the models will be split in a way that will help recompile times and also creation of different interfaces for different form-factors. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/completionmodels.h')
-rw-r--r--qt-models/completionmodels.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/qt-models/completionmodels.h b/qt-models/completionmodels.h
new file mode 100644
index 000000000..859b8c007
--- /dev/null
+++ b/qt-models/completionmodels.h
@@ -0,0 +1,36 @@
+#ifndef COMPLETIONMODELS_H
+#define COMPLETIONMODELS_H
+
+#include <QStringListModel>
+
+class BuddyCompletionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ void updateModel();
+};
+
+class DiveMasterCompletionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ void updateModel();
+};
+
+class LocationCompletionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ void updateModel();
+};
+
+class SuitCompletionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ void updateModel();
+};
+
+class TagCompletionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ void updateModel();
+};
+
+#endif // COMPLETIONMODELS_H