aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml')
-rw-r--r--examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml b/examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml
index e08e19801f..95ff4418e8 100644
--- a/examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml
+++ b/examples/quickcontrols/attachedstyleproperties/attachedstyleproperties.qml
@@ -1,4 +1,4 @@
-// Copyright (C) 2022 The Qt Company Ltd.
+// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
@@ -32,6 +32,7 @@ ApplicationWindow {
Switch {
id: darkModeSwitch
text: qsTr("Dark mode")
+ Layout.fillWidth: false
}
}
}
@@ -48,11 +49,13 @@ ApplicationWindow {
RowLayout {
Button {
text: qsTr("Open Popup")
+ Layout.fillWidth: false
onClicked: popup.open()
}
Button {
text: qsTr("Open Window")
+ Layout.fillWidth: false
onClicked: {
if (!childWindow.active)
childWindow.show()
@@ -65,8 +68,8 @@ ApplicationWindow {
Popup {
id: popup
- dim: true
anchors.centerIn: parent
+ closePolicy: Popup.NoAutoClose
ColumnLayout {
anchors.centerIn: parent
@@ -80,6 +83,7 @@ ApplicationWindow {
Button {
text: qsTr("Close Popup")
Layout.alignment: Qt.AlignHCenter
+ Layout.fillWidth: false
onClicked: popup.close()
}
}
@@ -103,6 +107,7 @@ ApplicationWindow {
Button {
text: qsTr("Close Window")
Layout.alignment: Qt.AlignHCenter
+ Layout.fillWidth: false
onClicked: childWindow.close()
}
}