mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
af8c44fa22
commit
507a929a27
4 changed files with 17 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue