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:
parent
5f61cc03b8
commit
6b864f6b96
@ -643,7 +643,7 @@ QRect Corona::screenGeometry(int id) const
|
|||||||
} else {
|
} else {
|
||||||
QGraphicsView *v = views()[0];
|
QGraphicsView *v = views()[0];
|
||||||
QRect r = sceneRect().toRect();
|
QRect r = sceneRect().toRect();
|
||||||
r.moveTo(v->mapToGlobal(v->pos()));
|
r.moveTo(v->mapToGlobal(QPoint(0, 0)));
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user