test: Fix tst_qwindow::positioning() on Ubuntu 12.04

It seems like the left-side menu bar on Ubuntu 12.04 causes some
problems when it is not automatically hidden, which is the case
in the CI machines.

Task-number: QTBUG-31995
Change-Id: I01ff3fe4c09d720b2dd53037c42e59679d8570dd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
bb10
Sergio Ahumada 2013-07-10 06:27:24 -07:00 committed by The Qt Project
parent c64d602df3
commit fa06a866b9
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ void tst_QWindow::positioning()
// if our positioning is actually fully respected by the window manager
// test whether it correctly handles frame positioning as well
if (originalPos == geometry.topLeft() && (originalMargins.top() != 0 || originalMargins.left() != 0)) {
QPoint framePos(40, 40);
QPoint framePos = QGuiApplication::primaryScreen()->availableVirtualGeometry().topLeft() + QPoint(40, 40);
window.reset();
window.setFramePosition(framePos);