From c2f77353eea26462311964f33515f7f91136abe9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 17 May 2015 18:35:30 -0300 Subject: [PATCH] Better name for the disable/enable geolocation edit 'enable' and 'disable' is too generic, and we are only blocking the geolocation edit. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 4 ++-- qt-ui/maintab.h | 4 ++-- qt-ui/mainwindow.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 739cbdf77..dff005774 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -200,12 +200,12 @@ MainTab::~MainTab() } } -void MainTab::enable() +void MainTab::enableGeoLoockupEdition() { setEnabled(true); } -void MainTab::disable() +void MainTab::disableGeoLoockupEdition() { setDisabled(true); } diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index e81c53ba7..4a44c03b3 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -94,8 +94,8 @@ slots: void removeSelectedPhotos(); void prepareDiveSiteEdit(); void showLocation(); - void enable(); - void disable(); + void enableGeoLoockupEdition(); + void disableGeoLoockupEdition(); private: Ui::MainTab ui; diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index f2873ab86..a06a2c227 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -203,8 +203,8 @@ MainWindow::MainWindow() : QMainWindow(), ui.menu_Edit->addActions(undoRedoActions); ReverseGeoLoockupThread *geoLoockup = ReverseGeoLoockupThread::instance(); - connect(geoLoockup, SIGNAL(started()),information(), SLOT(disable())); - connect(geoLoockup, SIGNAL(finished()), information(), SLOT(enable())); + connect(geoLoockup, SIGNAL(started()),information(), SLOT(disableGeoLoockupEdition())); + connect(geoLoockup, SIGNAL(finished()), information(), SLOT(enableGeoLoockupEdition())); } MainWindow::~MainWindow()