diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-04 20:14:51 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-04 18:16:22 +0000 |
commit | a0c19178dac1808a3d040204609aa97b5baa3c18 (patch) | |
tree | d92b2dd140f5a2f7755e07659a423f0c2da36afa /src | |
parent | 99bbe5643b293aaad7b7ccb299989f62b8f6dced (diff) |
Docs: use constant-value -tables for supported enum values
Change-Id: I6243e08099d1fdd0584817f7ff5ccf5825a8cae0
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/templates/qquickcontrol.cpp | 8 | ||||
-rw-r--r-- | src/templates/qquickdial.cpp | 8 | ||||
-rw-r--r-- | src/templates/qquickscrollbar.cpp | 6 | ||||
-rw-r--r-- | src/templates/qquickscrollindicator.cpp | 6 | ||||
-rw-r--r-- | src/templates/qquickslider.cpp | 14 | ||||
-rw-r--r-- | src/templates/qquickstackview.cpp | 12 |
6 files changed, 19 insertions, 35 deletions
diff --git a/src/templates/qquickcontrol.cpp b/src/templates/qquickcontrol.cpp index 06a11b13..1a314833 100644 --- a/src/templates/qquickcontrol.cpp +++ b/src/templates/qquickcontrol.cpp @@ -539,12 +539,10 @@ void QQuickControl::resetSpacing() This property holds the layout direction of the control. Possible values: - \list - \li Qt.LeftToRight (default) - Items are laid out from left to right. If the width of the row is explicitly set, - the left anchor remains to the left of the row. - \li Qt.RightToLeft - Items are laid out from right to left. If the width of the row is explicitly set, + \value Qt.LeftToRight Items are laid out from left to right. If the width of the row is explicitly set, + the left anchor remains to the left of the row (default). + \value Qt.RightToLeft Items are laid out from right to left. If the width of the row is explicitly set, the right anchor remains to the right of the row. - \endlist \sa effectiveLayoutDirection */ diff --git a/src/templates/qquickdial.cpp b/src/templates/qquickdial.cpp index f2f54a50..084497d1 100644 --- a/src/templates/qquickdial.cpp +++ b/src/templates/qquickdial.cpp @@ -316,11 +316,9 @@ void QQuickDial::setStepSize(qreal step) certain points along the dial. Possible values: - \list - \li \c Dial.NoSnap (default) - The dial does not snap. - \li \c Dial.SnapAlways - The dial snaps while the handle is dragged. - \li \c Dial.SnapOnRelease - The dial does not snap while being dragged, but only after the handle is released. - \endlist + \value Dial.NoSnap The dial does not snap (default). + \value Dial.SnapAlways The dial snaps while the handle is dragged. + \value Dial.SnapOnRelease The dial does not snap while being dragged, but only after the handle is released. \sa stepSize */ diff --git a/src/templates/qquickscrollbar.cpp b/src/templates/qquickscrollbar.cpp index e21b613b..5211d95b 100644 --- a/src/templates/qquickscrollbar.cpp +++ b/src/templates/qquickscrollbar.cpp @@ -211,10 +211,8 @@ void QQuickScrollBar::setPressed(bool pressed) This property holds the orientation of the scroll bar. Possible values: - \list - \li \c Qt.Horizontal - \li \c Qt.Vertical (default) - \endlist + \value Qt.Horizontal Horizontal + \value Qt.Vertical Vertical (default) */ Qt::Orientation QQuickScrollBar::orientation() const { diff --git a/src/templates/qquickscrollindicator.cpp b/src/templates/qquickscrollindicator.cpp index a1979798..23d1e480 100644 --- a/src/templates/qquickscrollindicator.cpp +++ b/src/templates/qquickscrollindicator.cpp @@ -177,10 +177,8 @@ void QQuickScrollIndicator::setActive(bool active) This property holds the orientation of the indicator. Possible values: - \list - \li \c Qt.Horizontal - \li \c Qt.Vertical (default) - \endlist + \value Qt.Horizontal Horizontal + \value Qt.Vertical Vertical (default) */ Qt::Orientation QQuickScrollIndicator::orientation() const { diff --git a/src/templates/qquickslider.cpp b/src/templates/qquickslider.cpp index c733fbb2..7327ebe9 100644 --- a/src/templates/qquickslider.cpp +++ b/src/templates/qquickslider.cpp @@ -309,11 +309,9 @@ void QQuickSlider::setStepSize(qreal step) This property holds the snap mode. Possible values: - \list - \li \c Slider.NoSnap (default) - The slider does not snap. - \li \c Slider.SnapAlways - The slider snaps while the handle is dragged. - \li \c Slider.SnapOnRelease - The slider does not snap while being dragged, but only after the handle is released. - \endlist + \value Slider.NoSnap The slider does not snap (default). + \value Slider.SnapAlways The slider snaps while the handle is dragged. + \value Slider.SnapOnRelease The slider does not snap while being dragged, but only after the handle is released. \sa stepSize */ @@ -359,10 +357,8 @@ void QQuickSlider::setPressed(bool pressed) This property holds the orientation. Possible values: - \list - \li \c Qt.Horizontal (default) - \li \c Qt.Vertical - \endlist + \value Qt.Horizontal Horizontal (default) + \value Qt.Vertical Vertical */ Qt::Orientation QQuickSlider::orientation() const { diff --git a/src/templates/qquickstackview.cpp b/src/templates/qquickstackview.cpp index d428aec5..4439e176 100644 --- a/src/templates/qquickstackview.cpp +++ b/src/templates/qquickstackview.cpp @@ -320,10 +320,8 @@ QQuickItem *QQuickStackView::currentItem() const \qmlmethod Item Qt.labs.controls::StackView::get(index, behavior = DontLoad) Supported behavior values: - \list - \li StackView.DontLoad - \li StackView.ForceLoad - \endlist + \value StackView.DontLoad + \value StackView.ForceLoad TODO */ @@ -343,10 +341,8 @@ QQuickItem *QQuickStackView::get(int index, LoadBehavior behavior) \qmlmethod Item Qt.labs.controls::StackView::find(callback, behavior = DontLoad) Supported behavior values: - \list - \li StackView.DontLoad - \li StackView.ForceLoad - \endlist + \value StackView.DontLoad + \value StackView.ForceLoad TODO */ |