summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-05-17 18:35:30 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-17 15:00:45 -0700
commitc2f77353eea26462311964f33515f7f91136abe9 (patch)
tree0d65d5ad29df0439dc863a39fd8162a157540db7
parentb59084dc1f273f6af04c503b4e73081757086287 (diff)
downloadsubsurface-c2f77353eea26462311964f33515f7f91136abe9.tar.gz
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 <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.cpp4
-rw-r--r--qt-ui/maintab.h4
-rw-r--r--qt-ui/mainwindow.cpp4
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()