aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickswitch.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-30 17:47:36 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-01 09:03:42 +0000
commit3f2ac678971694fe6144a4e15197aff2ca38639b (patch)
tree06440cbf63932fb008f3aab29835b07d0310bada /src/templates/qquickswitch.cpp
parentb948c83255239a6fe49fca58a98f90e796ce9047 (diff)
Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0
Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickswitch.cpp')
-rw-r--r--src/templates/qquickswitch.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/templates/qquickswitch.cpp b/src/templates/qquickswitch.cpp
index 0ce43dc7..2a89d5c7 100644
--- a/src/templates/qquickswitch.cpp
+++ b/src/templates/qquickswitch.cpp
@@ -45,23 +45,23 @@ QT_BEGIN_NAMESPACE
\qmltype Switch
\inherits Checkable
\instantiates QQuickSwitch
- \inqmlmodule QtQuick.Controls
+ \inqmlmodule Qt.labs.controls
\ingroup buttons
\brief A switch control.
- \image qtquickcontrols2-switch.gif
+ \image qtlabscontrols-switch.gif
Switch is an option button that can be dragged or toggled on (checked) or
off (unchecked). Switches are typically used to select between two states.
\table
- \row \li \image qtquickcontrols2-switch-normal.png
+ \row \li \image qtlabscontrols-switch-normal.png
\li A switch in its normal state.
- \row \li \image qtquickcontrols2-switch-checked.png
+ \row \li \image qtlabscontrols-switch-checked.png
\li A switch that is checked.
- \row \li \image qtquickcontrols2-switch-focused.png
+ \row \li \image qtlabscontrols-switch-focused.png
\li A switch that has active focus.
- \row \li \image qtquickcontrols2-switch-disabled.png
+ \row \li \image qtlabscontrols-switch-disabled.png
\li A switch that is disabled.
\endtable
@@ -107,7 +107,7 @@ QQuickSwitch::QQuickSwitch(QQuickItem *parent) :
}
/*!
- \qmlproperty real QtQuick.Controls::Switch::position
+ \qmlproperty real Qt.labs.controls::Switch::position
This property holds the logical position of the thumb indicator.
@@ -136,7 +136,7 @@ void QQuickSwitch::setPosition(qreal position)
}
/*!
- \qmlproperty real QtQuick.Controls::Switch::visualPosition
+ \qmlproperty real Qt.labs.controls::Switch::visualPosition
This property holds the visual position of the thumb indicator.