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>
This commit is contained in:
Boris Barbulovski 2014-02-11 18:46:14 +01:00 committed by Dirk Hohndel
parent af8c44fa22
commit 507a929a27
4 changed files with 17 additions and 30 deletions

View file

@ -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