aboutsummaryrefslogtreecommitdiff
path: root/tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp')
-rw-r--r--tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp b/tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp
index 1b72e274..cd18f4ca 100644
--- a/tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp
+++ b/tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp
@@ -239,7 +239,7 @@ void Ut_MApplicationMenu::testClear()
void Ut_MApplicationMenu::testEventsPassingThrough()
{
- m_subject->appear();
+ m_subject->appear(appWin);
// The event should be swallowed if it is not triggering any action.
QGraphicsSceneMouseEvent mousePressEvent(QEvent::GraphicsSceneMousePress);
QVERIFY(mousePressEvent.isAccepted());
@@ -281,7 +281,7 @@ void Ut_MApplicationMenu::testRotation()
/* Rotate the scene by 90 degrees and back again. We should find that the
* preferred size hasn't changed overall. We call processEvents to check that there
* are no outstanding layouting etc */
- m_subject->appear();
+ m_subject->appear(appWin);
MApplication::activeWindow()->setOrientationAngle(M::Angle0);
QSizeF preferredSizeLandscape = m_subject->preferredSize();
app->processEvents();