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
This commit is contained in:
Marco Martin 2010-07-28 16:57:41 +00:00
parent 5f61cc03b8
commit 6b864f6b96

View File

@ -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;
}
}