aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/scene/mscenemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/scene/mscenemanager.cpp')
-rw-r--r--src/corelib/scene/mscenemanager.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/corelib/scene/mscenemanager.cpp b/src/corelib/scene/mscenemanager.cpp
index bad60e3b..95d1df38 100644
--- a/src/corelib/scene/mscenemanager.cpp
+++ b/src/corelib/scene/mscenemanager.cpp
@@ -1598,10 +1598,13 @@ void MSceneManagerPrivate::createAppearanceAnimationForSceneWindow(MSceneWindow
switch(sceneWindow->windowType()) {
case MSceneWindow::NotificationInformation:
case MSceneWindow::NotificationEvent:
- case MSceneWindow::ApplicationMenu:
case MSceneWindow::NavigationBar:
animation = new MWidgetSlideAnimation(sceneWindow);
break;
+ case MSceneWindow::ApplicationMenu:
+ animation = qobject_cast<MAbstractWidgetAnimation*>(
+ MTheme::animation(style()->applicationMenuAnimation()));
+ break;
case MSceneWindow::PopupList:
animation = qobject_cast<MAbstractWidgetAnimation*>(
MTheme::animation(style()->popupListAnimation()));
@@ -1658,10 +1661,13 @@ void MSceneManagerPrivate::createDisappearanceAnimationForSceneWindow(MSceneWind
switch(sceneWindow->windowType()) {
case MSceneWindow::NotificationInformation:
case MSceneWindow::NotificationEvent:
- case MSceneWindow::ApplicationMenu:
case MSceneWindow::NavigationBar:
animation = new MWidgetSlideAnimation(sceneWindow);
break;
+ case MSceneWindow::ApplicationMenu:
+ animation = qobject_cast<MAbstractWidgetAnimation*>(
+ MTheme::animation(style()->applicationMenuAnimation()));
+ break;
case MSceneWindow::PopupList:
animation = qobject_cast<MAbstractWidgetAnimation*>(
MTheme::animation(style()->popupListAnimation()));