summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-11 18:46:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-11 12:36:45 -0800
commit507a929a27d31eaf077437674e6ec3cdaaed34d2 (patch)
tree5aa79a268e7359d7a384d03caba656111332e992 /qt-ui/maintab.h
parentaf8c44fa22ef6fca6a06fe4ad9e8af949a137458 (diff)
downloadsubsurface-507a929a27d31eaf077437674e6ec3cdaaed34d2.tar.gz
Migrate MainTab models(QStringListModel)
Migrate MainTab models from static xxxCompletioModel::instance() to private MainTab variable members. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index c5afd2f55..1edeebab6 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -13,6 +13,7 @@
#include "models.h"
#include "ui_maintab.h"
+#include "completionmodels.h"
class QCompleter;
struct dive;
@@ -94,6 +95,12 @@ private:
QMap<dive*, NotesBackup> notesBackup;
EditMode editMode;
+ BuddyCompletionModel buddyModel;
+ DiveMasterCompletionModel diveMasterModel;
+ LocationCompletionModel locationModel;
+ SuitCompletionModel suitModel;
+ TagCompletionModel tagModel;
+
/* since the multi-edition of the equipment is fairly more
* complex than a single item, because it involves a Qt
* Model to edit things, we are copying the first selected