Changeset View
Changeset View
Standalone View
Standalone View
libs/libqml/plugins/components/PageStack.qml
Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Line(s) | 248 | Item { | |||
---|---|---|---|---|---|
286 | // Sets pending state as current if state change is delayed | 286 | // Sets pending state as current if state change is delayed | ||
287 | onTransitionAnimationRunningChanged: { | 287 | onTransitionAnimationRunningChanged: { | ||
288 | if (!transitionAnimationRunning && pendingState != "none") { | 288 | if (!transitionAnimationRunning && pendingState != "none") { | ||
289 | state = pendingState; | 289 | state = pendingState; | ||
290 | pendingState = "none"; | 290 | pendingState = "none"; | ||
291 | } | 291 | } | ||
292 | } | 292 | } | ||
293 | 293 | | |||
294 | // Handles state change depening on transition animation status | 294 | // Handles state change depending on transition animation status | ||
295 | function setState(newState) | 295 | function setState(newState) | ||
296 | { | 296 | { | ||
297 | if (transitionAnimationRunning) | 297 | if (transitionAnimationRunning) | ||
298 | pendingState = newState; | 298 | pendingState = newState; | ||
299 | else | 299 | else | ||
300 | state = newState; | 300 | state = newState; | ||
301 | } | 301 | } | ||
302 | 302 | | |||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |