summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-16 22:25:26 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-16 20:33:02 -0800
commit47c833015b28f154e56505a769b6353db613bbc4 (patch)
treed6f004b93224a3b384a5e30e4fc51b1926ffb7ed /qt-ui
parent5058d8914a95794312e4577bdf3a226525dfafc3 (diff)
downloadsubsurface-47c833015b28f154e56505a769b6353db613bbc4.tar.gz
Fix showing the tooltips on the profile.
We incorrectly mapped the profile's widget tooltip based on the global screen coordinates. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 436d3af15..9ba01ac31 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -139,7 +139,7 @@ bool ProfileGraphicsView::eventFilter(QObject* obj, QEvent* event)
// This will "Eat" the default tooltip behavior if it is not on the toolBar.
if (event->type() == QEvent::GraphicsSceneHelp) {
- if(toolBarProxy && !toolBarProxy->geometry().contains(mapFromGlobal(QCursor::pos()))){
+ if(toolBarProxy && !toolBarProxy->geometry().contains(mapToScene(mapFromGlobal(QCursor::pos())))){
event->ignore();
return true;
}