diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-07-30 21:18:57 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-31 10:27:01 -0700 |
commit | 7834341562758ba22f46c5cca4f509987db611f1 (patch) | |
tree | 8d7b7e90e3b60b0d1a0306aa5b3b61436e8688e5 /qt-ui | |
parent | 9cf31a4d73a1b159816c5996551f601e3a7337aa (diff) | |
download | subsurface-7834341562758ba22f46c5cca4f509987db611f1.tar.gz |
Remove unused signal
And move things around, informationManagementEnded was a good name
but endEditDiveSite is better.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/locationinformation.cpp | 4 | ||||
-rw-r--r-- | qt-ui/locationinformation.h | 1 | ||||
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 3bb37ca21..48d5035ab 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -85,7 +85,7 @@ void LocationInformationWidget::acceptChanges() mark_divelist_changed(true); resetState(); - emit informationManagementEnded(); + emit endEditDiveSite(); emit coordinatesChanged(); } @@ -93,7 +93,7 @@ void LocationInformationWidget::rejectChanges() { resetState(); emit stopFilterDiveSite(); - emit informationManagementEnded(); + emit endEditDiveSite(); emit coordinatesChanged(); } diff --git a/qt-ui/locationinformation.h b/qt-ui/locationinformation.h index 6b7399813..3eff271c2 100644 --- a/qt-ui/locationinformation.h +++ b/qt-ui/locationinformation.h @@ -29,7 +29,6 @@ private slots: signals: void startEditDiveSite(uint32_t uuid); void endEditDiveSite(); - void informationManagementEnded(); void coordinatesChanged(); void startFilterDiveSite(uint32_t uuid); void stopFilterDiveSite(); diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index b6459d3c2..d6ad23584 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -111,7 +111,7 @@ MainWindow::MainWindow() : QMainWindow(), profileContainer->setLayout(profLayout); LocationInformationWidget * diveSiteEdit = new LocationInformationWidget(); - connect(diveSiteEdit, &LocationInformationWidget::informationManagementEnded, + connect(diveSiteEdit, &LocationInformationWidget::endEditDiveSite, this, &MainWindow::setDefaultState); QWidget *diveSitePictures = new QWidget(); // Placeholder |