From 6b864f6b96c4d4f52e85299739d41d3a19845e05 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 28 Jul 2010 16:57:41 +0000 Subject: [PATCH] if you map to global the position of the view, you'll get coordinates dpubled map 0,0 instead svn path=/trunk/KDE/kdelibs/; revision=1156165 --- corona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corona.cpp b/corona.cpp index 99f8ce7b2..5f15bb278 100644 --- a/corona.cpp +++ b/corona.cpp @@ -643,7 +643,7 @@ QRect Corona::screenGeometry(int id) const } else { QGraphicsView *v = views()[0]; QRect r = sceneRect().toRect(); - r.moveTo(v->mapToGlobal(v->pos())); + r.moveTo(v->mapToGlobal(QPoint(0, 0))); return r; } }