diff options
author | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-09-07 10:43:41 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@theqtcompany.com> | 2015-09-07 09:48:42 +0000 |
commit | 1c6d440d28a9125a452b7a35320cc44cfa7906f0 (patch) | |
tree | 0a972dcc5c7fe18e02173541994b7d7c6260bc1a | |
parent | 973474129baec084b582481ffbc8725b33ad320c (diff) | |
download | qtquickcontrols-1c6d440d28a9125a452b7a35320cc44cfa7906f0.tar.gz |
Fix a few issues in StackLayout documentation.
Change-Id: I5a9a5b020cee4f8e3e86b40b23d2ecbd879e9e7a
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r-- | src/layouts/qquickstacklayout.cpp | 10 |
1 files 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 { |