summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-07-16 18:47:57 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 18:34:22 -0700
commit0a473b3a2af6cab57f1fc0f360aff7e2dfeca133 (patch)
treefd9fa236a8d5d7c493311bbfa0efdac17788f60b /qt-ui/globe.h
parent56240cff5ba2e8b762d3ba85cf62aafdc874d693 (diff)
downloadsubsurface-0a473b3a2af6cab57f1fc0f360aff7e2dfeca133.tar.gz
Fix mouse interaction with the Location List
paint methods should be used only to paint, not to trigger other widget behaviours ( we could got ourselves into a bad recursion bug from that ). Also, enabled mouse tracking to correctly track the mouse movement inside the widget. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.h')
-rw-r--r--qt-ui/globe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h
index 5b34b052d..e8be53b5e 100644
--- a/qt-ui/globe.h
+++ b/qt-ui/globe.h
@@ -52,6 +52,7 @@ slots:
void prepareForGetDiveCoordinates();
void endGetDiveCoordinates();
void centerOnDiveSite(struct dive_site *ds);
+ void centerOnIndex(const QModelIndex& idx);
};
#else // NO_MARBLE
@@ -65,6 +66,7 @@ public:
void reload();
void repopulateLabels();
void centerOnDiveSite(uint32_t uuid);
+ void centerOnIndex(const QModelIndex& idx);
void centerOnCurrentDive();
bool eventFilter(QObject *, QEvent *);
public