Remove quick edit dive site widget

Voted down by common consent.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-07-14 14:29:48 -03:00 committed by Dirk Hohndel
parent 49ab30ae8b
commit 9510f40db4
6 changed files with 8 additions and 221 deletions

View file

@ -74,7 +74,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
locationManagementEditHelper, &LocationManagementEditHelper::handleActivation);
ui.location->setCompleter(completer);
connect(ui.addDiveSite, SIGNAL(clicked()), this, SLOT(showDiveSiteSimpleEdit()));
connect(ui.geocodeButton, SIGNAL(clicked()), this, SLOT(reverseGeocode()));
QAction *action = new QAction(tr("Apply changes"), this);
@ -250,27 +249,14 @@ void MainTab::setCurrentLocationIndex()
}
}
void MainTab::showDiveSiteSimpleEdit()
{
if (ui.location->text().isEmpty())
return;
SimpleDiveSiteEditDialog dlg(this);
dlg.exec();
if (dlg.changed_dive_site) {
markChangedWidget(ui.location);
}
}
void MainTab::enableGeoLookupEdition()
{
ui.waitingSpinner->stop();
ui.addDiveSite->show();
}
void MainTab::disableGeoLookupEdition()
{
ui.waitingSpinner->start();
ui.addDiveSite->hide();
}
void MainTab::toggleTriggeredColumn()