diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-25 13:21:23 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-27 06:43:18 -0400 |
commit | 1239056fb6186279f915c8b3a8af733e74cb6523 (patch) | |
tree | ca1c6972e9b1232c169e81a02e4c3e66109c7984 /qt-ui/maintab.cpp | |
parent | 6633ab302d70ea7e6407d60936927f585cb76385 (diff) | |
download | subsurface-1239056fb6186279f915c8b3a8af733e74cb6523.tar.gz |
Center on the dive site also via keyboard
Now mouse and keyboard navigation over the list of current
dive sites will update the marble globe position.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index ba345d938..b6266eb33 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -58,6 +58,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), connect(ui.editDiveSiteButton, SIGNAL(clicked()), MainWindow::instance(), SIGNAL(startDiveSiteEdit())); #ifndef NO_MARBLE connect(ui.location, &DiveLocationLineEdit::entered, GlobeGPS::instance(), &GlobeGPS::centerOnIndex); + connect(ui.location, &DiveLocationLineEdit::currentChanged, GlobeGPS::instance(), &GlobeGPS::centerOnIndex); #endif QAction *action = new QAction(tr("Apply changes"), this); |