diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2013-04-11 11:49:07 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-11 14:32:07 +0200 |
commit | ded5826c0dd180846cfda29cb77078d75f87b169 (patch) | |
tree | 95ee721fb6921c8a4921b265ac85378fc00f1d39 | |
parent | 2a6a8d0fa9ea7e83bb90c3a7e7e0617475764616 (diff) | |
download | qtquickcontrols-ded5826c0dd180846cfda29cb77078d75f87b169.tar.gz |
QtQuick.Layouts: Doc fixes
This patch is adressing the comments in the merged commit
https://codereview.qt-project.org/#change,53287,patchset=3
Change-Id: Ie98db08da2d70c62f47d32d12c27d76c5bda2807
Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
-rw-r--r-- | src/layouts/doc/qtquicklayouts-index.qdoc | 9 | ||||
-rw-r--r-- | src/layouts/qquicklinearlayout.cpp | 22 |
2 files changed, 16 insertions, 15 deletions
diff --git a/src/layouts/doc/qtquicklayouts-index.qdoc b/src/layouts/doc/qtquicklayouts-index.qdoc index 7077e1d5..73425f84 100644 --- a/src/layouts/doc/qtquicklayouts-index.qdoc +++ b/src/layouts/doc/qtquicklayouts-index.qdoc @@ -29,7 +29,7 @@ \page qtquicklayouts-index.html \title Qt Quick Layouts - \brief The Qt Quick Layouts module is an add-on module of Qt. + \brief A module with a set of QML elements that arranges QML items in an user interface. \section1 Getting started @@ -40,9 +40,10 @@ \endcode \section1 Layouts - Layouts are items that are used to arrange items in the user interface. Layout are dynamic - - when the layout changes geometry it will typically incluence the arrangement of its child - items. + Layouts are items that are used to arrange items in the user interface. The layout is dynamic - + when the layout changes geometry it will typically influence the arrangement of its child + items. Since a layout is an item, layouts can consequently be nested. + \annotatedlist layouts */ diff --git a/src/layouts/qquicklinearlayout.cpp b/src/layouts/qquicklinearlayout.cpp index f01a0268..fc8dc707 100644 --- a/src/layouts/qquicklinearlayout.cpp +++ b/src/layouts/qquicklinearlayout.cpp @@ -49,7 +49,7 @@ \instantiates QQuickRowLayout \inqmlmodule QtQuick.Layouts 1.0 \ingroup layouts - \brief RowLayout is the same as a \l GridLayout with just one row. + \brief Identical to \l GridLayout, but having only one row. It is available as a convenience for developers, as it offers a cleaner API. @@ -62,7 +62,7 @@ \instantiates QQuickColumnLayout \inqmlmodule QtQuick.Layouts 1.0 \ingroup layouts - \brief ColumnLayout is the same as a \l GridLayout with just one column. + \brief Identical to \l GridLayout, but having only one column. It is available as a convenience for developers, as it offers a cleaner API. @@ -118,7 +118,7 @@ Preferred size can be specified with the Layout.preferredWidth and Layout.preferredHeight properties. If Layout.preferredWidth or Layout.preferredHeight is not specified, it will - use the items implicitWidth or implicitHeight as the items preferred size. Finally, if + use the items' implicitWidth or implicitHeight as the preferred size. Finally, if neither of these properties are set, it will use the width and height properties of the item. \note It is not recommended to have bindings to the width and height properties of items in a @@ -396,7 +396,7 @@ QQuickGridLayout::QQuickGridLayout(QQuickItem *parent /* = 0*/) \qmlproperty double GridLayout::columnSpacing This property holds the spacing between each column. - The default value is 4. + The default value is \c 4. */ qreal QQuickGridLayout::columnSpacing() const { @@ -419,7 +419,7 @@ void QQuickGridLayout::setColumnSpacing(qreal spacing) \qmlproperty double GridLayout::rowSpacing This property holds the spacing between each row. - The default value is 4. + The default value is \c 4. */ qreal QQuickGridLayout::rowSpacing() const { @@ -441,9 +441,9 @@ void QQuickGridLayout::setRowSpacing(qreal spacing) /*! \qmlproperty int GridLayout::columns - This property holds the column bound for items positioned if \l flow is + This property holds the column limit for items positioned if \l flow is \c GridLayout.LeftToRight. - The default value is treated as infinite. + The default value is that there is no limit. */ int QQuickGridLayout::columns() const { @@ -465,8 +465,8 @@ void QQuickGridLayout::setColumns(int columns) /*! \qmlproperty int GridLayout::rows - This property holds the row bound for items positioned if \l flow is \c GridLayout.TopToBottom. - The default value is treated as infinite. + This property holds the row limit for items positioned if \l flow is \c GridLayout.TopToBottom. + The default value is that there is no limit. */ int QQuickGridLayout::rows() const { @@ -652,13 +652,13 @@ QQuickLinearLayout::QQuickLinearLayout(Qt::Orientation orientation, \qmlproperty double RowLayout::spacing This property holds the spacing between each cell. - The default value 4. + The default value is \c 4. */ /*! \qmlproperty double ColumnLayout::spacing This property holds the spacing between each cell. - The default value 4. + The default value is \c 4. */ qreal QQuickLinearLayout::spacing() const |