From 324b6182aa46fa8eb6c2c60c9fdcb40e00da6b32 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 1 Jul 2015 18:35:55 -0300 Subject: Remove location completion model This is a functional but hard to expand model for the dive sites. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index d60e22a79..1236c949d 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -100,8 +100,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), connect(ui.cylinders->view(), SIGNAL(clicked(QModelIndex)), this, SLOT(editCylinderWidget(QModelIndex))); connect(ui.weights->view(), SIGNAL(clicked(QModelIndex)), this, SLOT(editWeightWidget(QModelIndex))); - LocationCompletionModel *locationCompletion = new LocationCompletionModel(); - ui.location->setCompleter(new QCompleter(locationCompletion)); ui.location->completer()->setCaseSensitivity(Qt::CaseInsensitive); ui.location->completer()->setCompletionMode(QCompleter::PopupCompletion); @@ -470,9 +468,6 @@ void MainTab::updateDiveInfo(bool clear) struct dive *prevd; char buf[1024]; - LocationCompletionModel *m = qobject_cast(ui.location->completer()->model()); - m->updateModel(); - process_selected_dives(); process_all_dives(&displayed_dive, &prevd); @@ -749,7 +744,6 @@ void MainTab::reload() { suitModel.updateModel(); buddyModel.updateModel(); - locationModel.updateModel(); diveMasterModel.updateModel(); tagModel.updateModel(); } @@ -1363,8 +1357,6 @@ void MainTab::on_location_editingFinished() markChangedWidget(ui.location); LocationInformationModel::instance()->update(); - LocationCompletionModel *m = qobject_cast(ui.location->completer()->model()); - m->updateModel(); emit diveSiteChanged(uuid); return; } -- cgit v1.2.3-70-g09d2