summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quickcontrols/extras/gallery/qml/gallery.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/quickcontrols/extras/gallery/qml/gallery.qml b/examples/quickcontrols/extras/gallery/qml/gallery.qml
index ae6c162d1..0f4d2b710 100644
--- a/examples/quickcontrols/extras/gallery/qml/gallery.qml
+++ b/examples/quickcontrols/extras/gallery/qml/gallery.qml
@@ -102,7 +102,7 @@ Window {
Dial {
id: volumeDial
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignCenter
Layout.fillWidth: true
Layout.fillHeight: true
@@ -124,7 +124,7 @@ Window {
ControlLabel {
id: volumeText
text: "Volume"
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignCenter
}
}
@@ -136,7 +136,7 @@ Window {
Dial {
id: dial2
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignCenter
Layout.fillWidth: true
Layout.fillHeight: true
@@ -151,7 +151,7 @@ Window {
ControlLabel {
id: trebleText
text: "Treble"
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.alignment: Qt.AlignCenter
}
}
}