summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmenu
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qmenu')
-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 8ff2b5c..23bb0c2 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());