aboutsummaryrefslogtreecommitdiff
path: root/tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp
diff options
context:
space:
mode:
authorDaniel d'Andrada <daniel.dandrada@nokia.com>2010-08-05 16:10:07 +0300
committerDaniel d'Andrada <daniel.dandrada@nokia.com>2010-08-06 09:28:25 +0300
commita2b8c314b492cfe56251422416146d7bf45127ad (patch)
treeecd2e4b3ed747f2ef2c80ad1caa21eddf96c3345 /tests/ut_mapplicationmenu/ut_mapplicationmenu.cpp
parent07a8c82d49542bbdb81847e08980f3746fc7c59b (diff)
Changes: Don't use deprecated MSceneWindow::appear(policy)
RevBy: TrustMe Details: Use either MSceneWindow::appear(window, policy) or MSceneWindow::appear(scene, policy)
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();