summaryrefslogtreecommitdiff
path: root/src/controls/StackView.qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-05-30 10:34:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-31 10:45:02 +0200
commitc94a6f44d5d1ba5532de48419ce10ef9000d4511 (patch)
treefb6273033de28592cf0d73f33999387dea656550 /src/controls/StackView.qml
parentcf6f7de3f03d52174f3dfa57031159caa4e7be31 (diff)
downloadqtquickcontrols-c94a6f44d5d1ba5532de48419ce10ef9000d4511.tar.gz
Doc: Make Stack attached properties more visible
And use \qmlattachedproperty instead of \qmlproperty for properties in the Stack. Change-Id: I1ffbd84ce91fd5a9040c082a8bcb403589becf91 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/controls/StackView.qml')
-rw-r--r--src/controls/StackView.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/controls/StackView.qml b/src/controls/StackView.qml
index 2c760e89..be1ddf06 100644
--- a/src/controls/StackView.qml
+++ b/src/controls/StackView.qml
@@ -65,6 +65,8 @@ import "Private/StackView.js" as JSArray
The stack can then be used by invoking its navigation methods. The first item
to show in the StackView is commonly loaded assigning it to \l initialItem.
+ \note Items pushed onto the stack view have \l{Supported Attached Properties}{Stack attached properties}.
+
\section1 Basic Navigation
There are three primary navigation operations in StackView: push(), pop() and
replace (you replace by specifying argument \c replace to push()).
@@ -435,6 +437,15 @@ import "Private/StackView.js" as JSArray
}
}
\endqml
+
+ \section1 Supported Attached Properties
+
+ Items in a StackView support these attached properties:
+ \list
+ \li \l{Stack::index}{Stack.index} - Contains the index of the item inside the StackView
+ \li \l{Stack::view}{Stack.view} - Contains the StackView the item is in
+ \li \l{Stack::status}{Stack.status} - Contains the status of the item
+ \endlist
*/
Item {