mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
56240cff5b
commit
0a473b3a2a
4 changed files with 21 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue