From 37cb5c751e85cb39c9098008ea21d5977c6364bc Mon Sep 17 00:00:00 2001 From: Balazs Egedi Date: Mon, 14 Jun 2021 15:57:47 +0200 Subject: Update customdialogs example to work with Quick Controls 2 Task-number: QTBUG-93666 Pick-to: 6.2 Change-Id: I3716454d7a0560f58a0e2da363b1d053babe824b Reviewed-by: Michal Klocek --- .../webengine/customdialogs/forms/JavaScriptForm.ui.qml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'examples/webengine/customdialogs/forms/JavaScriptForm.ui.qml') 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 -- cgit v1.2.1