diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-25 13:11:44 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-27 06:43:18 -0400 |
commit | 6633ab302d70ea7e6407d60936927f585cb76385 (patch) | |
tree | a713f0d98a9f0ea9be847d3931e70a40bd514347 /qt-ui/maintab.cpp | |
parent | a5d2003e3a8bb16ace11fefa7afd32e7f5746e78 (diff) | |
download | subsurface-6633ab302d70ea7e6407d60936927f585cb76385.tar.gz |
Change globe position when mouse over dive site
When the mouse moves over the dive site list, the globe
should show the current one under the mouse.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index b84b27c67..ba345d938 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -56,6 +56,9 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), closeMessage(); connect(ui.editDiveSiteButton, SIGNAL(clicked()), MainWindow::instance(), SIGNAL(startDiveSiteEdit())); +#ifndef NO_MARBLE + connect(ui.location, &DiveLocationLineEdit::entered, GlobeGPS::instance(), &GlobeGPS::centerOnIndex); +#endif QAction *action = new QAction(tr("Apply changes"), this); connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges())); |