summaryrefslogtreecommitdiff
path: root/src/controls/qquickstack.cpp
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/qquickstack.cpp
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/qquickstack.cpp')
-rw-r--r--src/controls/qquickstack.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/controls/qquickstack.cpp b/src/controls/qquickstack.cpp
index 5d3accff..ecf873d7 100644
--- a/src/controls/qquickstack.cpp
+++ b/src/controls/qquickstack.cpp
@@ -50,12 +50,9 @@ QT_BEGIN_NAMESPACE
\ingroup views
\brief Provides attached properties for items pushed onto a StackView.
- The Stack attached property provides information when an item becomes
- active or inactive through the \l{Stack::status}{Stack.status} property.
- Status will be \c Stack.Activating when an item is transitioning into
- being the current item on the screen, and \c Stack.Active once the
- transition stops. When it leaves the screen, it will be
- \c Stack.Deactivating, and then \c Stack.Inactive.
+ The Stack type provides attached properties for items pushed onto a \l StackView.
+ It gives specific information about the item, such as its \l status and
+ \l index in the stack \l view the item is in.
\sa StackView
*/
@@ -75,7 +72,7 @@ QQuickStack *QQuickStack::qmlAttachedProperties(QObject *object)
/*!
\readonly
- \qmlproperty int Stack::index
+ \qmlattachedproperty int Stack::index
This property holds the index of the item inside \l{view}{StackView},
so that \l{StackView::get()}{StackView.get(index)} will return the item itself.
@@ -96,7 +93,7 @@ void QQuickStack::setIndex(int index)
/*!
\readonly
- \qmlproperty enumeration Stack::status
+ \qmlattachedproperty enumeration Stack::status
This property holds the status of the item. It can have one of the following values:
\list
@@ -121,7 +118,7 @@ void QQuickStack::setStatus(Status status)
/*!
\readonly
- \qmlproperty StackView Stack::view
+ \qmlattachedproperty StackView Stack::view
This property holds the StackView the item is in. If the item is not inside
a StackView, \a view will be \c null.