From 507a929a27d31eaf077437674e6ec3cdaaed34d2 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Tue, 11 Feb 2014 18:46:14 +0100 Subject: Migrate MainTab models(QStringListModel) Migrate MainTab models from static xxxCompletioModel::instance() to private MainTab variable members. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/completionmodels.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'qt-ui/completionmodels.cpp') 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 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() \ { \ -- cgit v1.2.3-70-g09d2