From 1c6d440d28a9125a452b7a35320cc44cfa7906f0 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 7 Sep 2015 10:43:41 +0200 Subject: Fix a few issues in StackLayout documentation. Change-Id: I5a9a5b020cee4f8e3e86b40b23d2ecbd879e9e7a Reviewed-by: J-P Nurmi --- src/layouts/qquickstacklayout.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/layouts/qquickstacklayout.cpp b/src/layouts/qquickstacklayout.cpp index 3ada3b1e..66513bfd 100644 --- a/src/layouts/qquickstacklayout.cpp +++ b/src/layouts/qquickstacklayout.cpp @@ -50,11 +50,11 @@ The index corresponds to the order of the StackLayout's children. In contrast to most other layouts, child Items' \l{Layout::fillWidth}{Layout.fillWidth} and \l{Layout::fillHeight}{Layout.fillHeight} properties - defaults to \c true. As a consequence, child items are by default filled to match the size of the StackLayout as long as their + default to \c true. As a consequence, child items are by default filled to match the size of the StackLayout as long as their \l{Layout::maximumWidth}{Layout.maximumWidth} or \l{Layout::maximumHeight}{Layout.maximumHeight} does not prevent it. Items are added to the layout by reparenting the item to the layout. Similarly, removal is done by reparenting the item from the layout. - Both of these operations will affect the layouts \l count property. + Both of these operations will affect the layout's \l count property. The following code will create a StackLayout where only the 'plum' rectangle is visible. \code @@ -102,7 +102,7 @@ QQuickStackLayout::QQuickStackLayout(QQuickItem *parent) : /*! \qmlproperty int StackLayout::count - This property holds the number of items that belongs to the layout. + This property holds the number of items that belong to the layout. Only items that are children of the StackLayout will be candidates for layouting. */ @@ -115,8 +115,8 @@ int QQuickStackLayout::count() const /*! \qmlproperty int StackLayout::currentIndex - This property holds the current index of which of the StackLayout's items that should be visible. - By default it will be -1 for an empty layout, otherwise the default is 0 (referring to the first item). + This property holds the index of the child item that is currently visible in the StackLayout. + By default it will be \c -1 for an empty layout, otherwise the default is \c 0 (referring to the first item). */ int QQuickStackLayout::currentIndex() const { -- cgit v1.2.1