aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickrangeslider.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2015-10-16 10:15:05 +0200
committerTopi Reiniƶ <topi.reinio@digia.com>2015-10-19 08:07:00 +0000
commit49b79522d8231c813c387492d50f14e39c114a00 (patch)
tree2cf41a2c877302070c80b12a6bb0206a8953268f /src/templates/qquickrangeslider.cpp
parent629002ccf27856c0bb122277cab174e1673c2971 (diff)
Doc: RangeSlider: Move methods out of property groups
QDoc doesn't support documenting methods inside a property group. Move them to the top level and use 'see also' to link between the groups and methods. Change-Id: I09fcdecb38ff63986f0d2a8c5d4151c47f249f1c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickrangeslider.cpp')
-rw-r--r--src/templates/qquickrangeslider.cpp63
1 files changed, 33 insertions, 30 deletions
diff --git a/src/templates/qquickrangeslider.cpp b/src/templates/qquickrangeslider.cpp
index 227402f4..cdfc0a2e 100644
--- a/src/templates/qquickrangeslider.cpp
+++ b/src/templates/qquickrangeslider.cpp
@@ -423,8 +423,6 @@ void QQuickRangeSlider::setTo(qreal to)
\qmlproperty real Qt.labs.controls::RangeSlider::first.visualPosition
\qmlproperty Item Qt.labs.controls::RangeSlider::first.handle
\qmlproperty bool Qt.labs.controls::RangeSlider::first.pressed
- \qmlmethod void Qt.labs.controls::RangeSlider::first.increase()
- \qmlmethod void Qt.labs.controls::RangeSlider::first.decrease()
\table
\header
@@ -467,19 +465,7 @@ void QQuickRangeSlider::setTo(qreal to)
\li This property holds whether the first handle is pressed.
\endtable
- \table
- \header
- \li Function
- \li Description
- \row
- \li increase
- \li Increases the value of the handle by \l stepSize, or \c 0.1 if
- stepSize is not defined.
- \row
- \li decrease
- \li Decreases the value of the handle by \l stepSize, or \c 0.1 if
- stepSize is not defined.
- \endtable
+ \sa first.increase(), first.decrease()
*/
QQuickRangeSliderNode *QQuickRangeSlider::first() const
{
@@ -494,8 +480,6 @@ QQuickRangeSliderNode *QQuickRangeSlider::first() const
\qmlproperty real Qt.labs.controls::RangeSlider::second.visualPosition
\qmlproperty Item Qt.labs.controls::RangeSlider::second.handle
\qmlproperty bool Qt.labs.controls::RangeSlider::second.pressed
- \qmlmethod void Qt.labs.controls::RangeSlider::second.increase()
- \qmlmethod void Qt.labs.controls::RangeSlider::second.decrease()
\table
\header
@@ -538,19 +522,7 @@ QQuickRangeSliderNode *QQuickRangeSlider::first() const
\li This property holds whether the second handle is pressed.
\endtable
- \table
- \header
- \li Function
- \li Description
- \row
- \li increase
- \li Increases the value of the handle by \l stepSize, or \c 0.1 if
- stepSize is not defined.
- \row
- \li decrease
- \li Decreases the value of the handle by \l stepSize, or \c 0.1 if
- stepSize is not defined.
- \endtable
+ \sa second.increase(), second.decrease()
*/
QQuickRangeSliderNode *QQuickRangeSlider::second() const
{
@@ -882,4 +854,35 @@ void QQuickRangeSlider::componentComplete()
}
}
+/*!
+ \qmlmethod void Qt.labs.controls::RangeSlider::first.increase()
+
+ Increases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
+
+ \sa first
+*/
+
+/*!
+ \qmlmethod void Qt.labs.controls::RangeSlider::first.decrease()
+
+ Decreases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
+
+ \sa first
+*/
+
+/*!
+ \qmlmethod void Qt.labs.controls::RangeSlider::second.increase()
+
+ Increases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
+
+ \sa second
+*/
+
+/*!
+ \qmlmethod void Qt.labs.controls::RangeSlider::second.decrease()
+
+ Decreases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
+
+ \sa second
+*/
QT_END_NAMESPACE