diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index f698dbb36..0ff44ae0c 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -59,21 +59,13 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), closeMessage(); QCompleter *completer = new QCompleter(); + QListView *completerListview = new QListView(); + completer->setPopup(completerListview); completer->setModel(LocationInformationModel::instance()); completer->setCompletionColumn(LocationInformationModel::NAME); completer->setCompletionRole(Qt::DisplayRole); - completer->setCompletionMode(QCompleter::PopupCompletion); completer->setCaseSensitivity(Qt::CaseInsensitive); - - QListView *completerListview = new QListView(); completerListview->setItemDelegate(new LocationFilterDelegate()); - completer->setPopup(completerListview); - - QListView *completerListView2 = new QListView(); - completerListView2->setItemDelegate(new LocationFilterDelegate()); - completerListView2->setModel(LocationInformationModel::instance()); - completerListView2->setModelColumn(1); - completerListView2->show(); ui.location->setCompleter(completer); connect(ui.addDiveSite, SIGNAL(clicked()), this, SLOT(showDiveSiteSimpleEdit())); |