diff options
author | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-09-16 07:02:02 +0300 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-09-16 08:03:34 +0300 |
commit | 5f3f555484fbd38ac0e6f05e44f1da9961cf843c (patch) | |
tree | 491c3963c48012bd12d8c11768843daf34d678a7 /src/corelib/widgets/mapplicationpage.h | |
parent | df069e8e49bda3878fe57de810849c17f2184a30 (diff) |
Changes: MApplicationPage - call createContent() on scene window state changes
RevBy: Dominik Kapusta
Details:
Call createContent() when MApplicationPage has the following scene window
state transitions:
Disappeared -> Appearing (started an animated appearance)
Disappeared -> Appeared (did an immediate appearance)
Without this fix, if you run "widgetsgallery -timedemo" you will get a crash.
That's because it considers, rightfully, that by the time appeared() signal
gets emited (in a immediate appearance), the application page content will
already be created.
This wasn't the case since createContent() was being called *only* due to
displayEntered() events.
Diffstat (limited to 'src/corelib/widgets/mapplicationpage.h')
-rw-r--r-- | src/corelib/widgets/mapplicationpage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/widgets/mapplicationpage.h b/src/corelib/widgets/mapplicationpage.h index c4541d45..500d8ebb 100644 --- a/src/corelib/widgets/mapplicationpage.h +++ b/src/corelib/widgets/mapplicationpage.h @@ -476,6 +476,9 @@ private: Q_DISABLE_COPY(MApplicationPage) Q_DECLARE_PRIVATE(MApplicationPage) + + Q_PRIVATE_SLOT(d_func(), void _q_onSceneWindowStateChanged(MSceneWindow::SceneWindowState newState, + MSceneWindow::SceneWindowState oldState)) }; Q_DECLARE_OPERATORS_FOR_FLAGS(MApplicationPage::Components) |