From 47c833015b28f154e56505a769b6353db613bbc4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 16 Nov 2013 22:25:26 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profilegraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2