summaryrefslogtreecommitdiff
path: root/examples/webengine/customdialogs/SwitchButton.qml
diff options
context:
space:
mode:
authorBalazs Egedi <egedib@inf.u-szeged.hu>2021-06-14 15:57:47 +0200
committerBalazs Egedi <egedib@inf.u-szeged.hu>2021-07-26 16:43:00 +0200
commit37cb5c751e85cb39c9098008ea21d5977c6364bc (patch)
treecd2c385ee311edd1f95c3a2b9bd87780a869e440 /examples/webengine/customdialogs/SwitchButton.qml
parent6117b0ffb9a8dab550486dbfa362f7a398ff8f5b (diff)
downloadqtwebengine-37cb5c751e85cb39c9098008ea21d5977c6364bc.tar.gz
Update customdialogs example to work with Quick Controls 2
Task-number: QTBUG-93666 Pick-to: 6.2 Change-Id: I3716454d7a0560f58a0e2da363b1d053babe824b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples/webengine/customdialogs/SwitchButton.qml')
-rw-r--r--examples/webengine/customdialogs/SwitchButton.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/webengine/customdialogs/SwitchButton.qml b/examples/webengine/customdialogs/SwitchButton.qml
index bb9a344f5..55005899a 100644
--- a/examples/webengine/customdialogs/SwitchButton.qml
+++ b/examples/webengine/customdialogs/SwitchButton.qml
@@ -48,9 +48,9 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtQuick.Controls 1.4 as Controls
-import QtQuick.Layouts 1.3
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
Item {
width: parent.width
@@ -62,7 +62,7 @@ Item {
text: qsTr("Use default dialogs")
font.pointSize: 12
}
- Controls.Switch {
+ Switch {
id: switcher
checked: true
}