summaryrefslogtreecommitdiffstats
path: root/qt-ui/completionmodels.cpp
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/completionmodels.cpp
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/completionmodels.cpp')
-rw-r--r--qt-ui/completionmodels.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/qt-ui/completionmodels.cpp b/qt-ui/completionmodels.cpp
index 8ccab3f2f..b0a5db2d3 100644
--- a/qt-ui/completionmodels.cpp
+++ b/qt-ui/completionmodels.cpp
@@ -2,21 +2,6 @@
#include "dive.h"
#include "mainwindow.h"
-#define CREATE_SINGLETON(X) \
-X* X::instance() \
-{ \
- static QScopedPointer<X> self(new X()); \
- return self.data(); \
-}
-
-CREATE_SINGLETON(BuddyCompletionModel);
-CREATE_SINGLETON(DiveMasterCompletionModel);
-CREATE_SINGLETON(LocationCompletionModel);
-CREATE_SINGLETON(SuitCompletionModel);
-CREATE_SINGLETON(TagCompletionModel);
-
-#undef CREATE_SINGLETON
-
#define CREATE_UPDATE_METHOD(Class, diveStructMember) \
void Class::updateModel() \
{ \