summaryrefslogtreecommitdiff
path: root/tests/auto/qmenu/tst_qmenu.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-06 13:01:41 +0200
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-06 13:03:05 +0200
commitb78d252137aa592f5998b1adea278f066e518ec6 (patch)
treebd51f5d61bc9c4afb2521029be68d452e57ee498 /tests/auto/qmenu/tst_qmenu.cpp
parent419079fb47c90d487b4e1f42029b70d5ec8f0d2d (diff)
downloadqt4-tools-b78d252137aa592f5998b1adea278f066e518ec6.tar.gz
QMenu: fixed a menu poppping up behind the menubar
Diffstat (limited to 'tests/auto/qmenu/tst_qmenu.cpp')
-rw-r--r--tests/auto/qmenu/tst_qmenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qmenu/tst_qmenu.cpp b/tests/auto/qmenu/tst_qmenu.cpp
index 8ff2b5c42a..23bb0c2bcd 100644
--- a/tests/auto/qmenu/tst_qmenu.cpp
+++ b/tests/auto/qmenu/tst_qmenu.cpp
@@ -50,6 +50,7 @@
#include <QStatusBar>
#include <QListWidget>
#include <QWidgetAction>
+#include <QDesktopWidget>
#include <qmenu.h>
#include <qstyle.h>
@@ -791,7 +792,7 @@ void tst_QMenu::task258920_mouseBorder()
Menu258920 menu;
QAction *action = menu.addAction("test");
- menu.popup(QPoint());
+ menu.popup(QApplication::desktop()->availableGeometry().center());
QTest::qWait(100);
QRect actionRect = menu.actionGeometry(action);
QTest::mouseMove(&menu, actionRect.center());