diff options
Diffstat (limited to 'src/quicktemplates2/qquickstackview.cpp')
-rw-r--r-- | src/quicktemplates2/qquickstackview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickstackview.cpp b/src/quicktemplates2/qquickstackview.cpp index 5b859adba1..77b674a22a 100644 --- a/src/quicktemplates2/qquickstackview.cpp +++ b/src/quicktemplates2/qquickstackview.cpp @@ -550,7 +550,8 @@ QQuickItem *QQuickStackView::find(const QJSValue &callback, LoadBehavior behavio \value StackView.ReplaceTransition An operation with replace transitions (since QtQuick.Controls 2.1). \value StackView.PopTransition An operation with pop transitions (since QtQuick.Controls 2.1). - If no operation is provided, \c PushTransition will be used. + If no operation is provided, \c Immediate will be used if the stack is + empty, and \c PushTransition otherwise. \note Items that already exist in the stack are not pushed. @@ -792,7 +793,8 @@ void QQuickStackView::pop(QQmlV4Function *args) \value StackView.ReplaceTransition An operation with replace transitions (since QtQuick.Controls 2.1). \value StackView.PopTransition An operation with pop transitions (since QtQuick.Controls 2.1). - If no operation is provided, \c ReplaceTransition will be used. + If no operation is provided, \c Immediate will be used if the stack is + empty, and \c ReplaceTransition otherwise. The following example illustrates the use of push and pop transitions with replace(). |