summaryrefslogtreecommitdiffstats
path: root/src/controls/StackView.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2013-03-26 10:24:09 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-29 08:36:41 +0100
commitd6a687060d80321158459442b1192a07253c281d (patch)
treedb64fc76d34531568be668a8b8068e95a2e428b0 /src/controls/StackView.qml
parent8f3a2d6d04ccd508bc9707d74892415a4842b09b (diff)
StackView: rename initialPage to initialItem
Change-Id: Ic156bd94a6bdc2068a6cfcf92c79c16baac31d50 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/StackView.qml')
-rw-r--r--src/controls/StackView.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/controls/StackView.qml b/src/controls/StackView.qml
index e4cea2e0a..4e42b62ae 100644
--- a/src/controls/StackView.qml
+++ b/src/controls/StackView.qml
@@ -66,7 +66,7 @@ import "Private/StackView.js" as JSArray
anchored to the edges of the window, except at the top or bottom where it might
be anchored to a status bar, or some other similar UI component.
The stack can then be used by invoking its navigation methods. The first page
- to show in the StackView is commonly loaded assigning it to \l initialPage.
+ to show in the StackView is commonly loaded assigning it to \l initialItem.
\section1 Basic Navigation
There are three primary navigation operations in StackView: push(), pop() and
@@ -460,20 +460,20 @@ Item {
readonly property alias currentItem: root.__currentItem
/*! The first \l Page that should be shown when the StackView is created.
- \a initialPage can take same value as the first argument to \l{StackView::push()}
+ \a initialItem can take same value as the first argument to \l{StackView::push()}
{StackView.push()}. Note that this is just a convenience for writing
\c{Component.onCompleted: pageStack.push(myInitialPage)}
Examples:
\list
- \li initialPage: Qt.resolvedUrl("MyPage.qml")
- \li initialPage: myItem
- \li initialPage: {"page" : Qt.resolvedUrl("MyPage.qml"), "properties" : {"color" : "red"}}
+ \li initialItem: Qt.resolvedUrl("MyPage.qml")
+ \li initialItem: myItem
+ \li initialItem: {"page" : Qt.resolvedUrl("MyPage.qml"), "properties" : {"color" : "red"}}
\endlist
\sa push
*/
- property var initialPage: null
+ property var initialItem: null
/*! \readonly
\a busy is \c true if a page transition is running, and \c false otherwise. */
@@ -528,7 +528,7 @@ Item {
Returns the page that became current.
- \sa initialPage
+ \sa initialItem
\sa {Pushing pages}
*/
function push(page) {
@@ -742,8 +742,8 @@ Item {
/*! \internal */
Component.onCompleted: {
- if (initialPage)
- push(initialPage)
+ if (initialItem)
+ push(initialItem)
}
/*! \internal */