summaryrefslogtreecommitdiff
path: root/examples/webengine/customdialogs/forms/JavaScriptForm.ui.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/forms/JavaScriptForm.ui.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/forms/JavaScriptForm.ui.qml')
-rw-r--r--examples/webengine/customdialogs/forms/JavaScriptForm.ui.qml17
1 files changed, 7 insertions, 10 deletions
diff --git a/examples/webengine/customdialogs/forms/JavaScriptForm.ui.qml b/examples/webengine/customdialogs/forms/JavaScriptForm.ui.qml
index 1c7fd29ed..14d9dc304 100644
--- a/examples/webengine/customdialogs/forms/JavaScriptForm.ui.qml
+++ b/examples/webengine/customdialogs/forms/JavaScriptForm.ui.qml
@@ -48,9 +48,9 @@
**
****************************************************************************/
-import QtQuick 2.4
-import QtQuick.Layouts 1.3
-import QtQuick.Controls 1.0 as Controls
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Controls
Item {
id: item
@@ -80,10 +80,7 @@ Item {
Rectangle {
id: rectangle
height: 30
- anchors.rightMargin: 0
- anchors.leftMargin: 0
- anchors.right: parent.right
- anchors.left: parent.left
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
gradient: Gradient {
GradientStop {
position: 0
@@ -118,7 +115,7 @@ Item {
font.pointSize: 12
}
- Controls.TextField {
+ TextField {
id: prompt
width: 300
height: 22
@@ -139,7 +136,7 @@ Item {
Layout.fillWidth: true
}
- Button {
+ CustomButton {
id: cancelButton
width: 90
height: 30
@@ -147,7 +144,7 @@ Item {
btnBlue: false
}
- Button {
+ CustomButton {
id: okButton
width: 90
height: 30