diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-06 11:01:41 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-06 11:03:05 (GMT) |
commit | b78d252137aa592f5998b1adea278f066e518ec6 (patch) | |
tree | bd51f5d61bc9c4afb2521029be68d452e57ee498 | |
parent | 419079fb47c90d487b4e1f42029b70d5ec8f0d2d (diff) | |
download | Qt-b78d252137aa592f5998b1adea278f066e518ec6.zip Qt-b78d252137aa592f5998b1adea278f066e518ec6.tar.gz Qt-b78d252137aa592f5998b1adea278f066e518ec6.tar.bz2 |
QMenu: fixed a menu poppping up behind the menubar
-rw-r--r-- | tests/auto/qmenu/tst_qmenu.cpp | 3 |
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()); |