Fix: fixed form layout.

This commit is contained in:
Keyitdev
2024-12-21 22:22:54 +01:00
parent a985026308
commit 8ac616a827
+8 -6
View File
@@ -33,17 +33,19 @@ ColumnLayout {
SystemButtons { SystemButtons {
id: systemButtons id: systemButtons
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
Layout.preferredHeight: root.height / 5 Layout.preferredHeight: root.height / 4
Layout.maximumHeight: root.height / 5 Layout.maximumHeight: root.height / 4
Layout.leftMargin: p != "0" ? a == "left" ? -p : a == "right" ? p : 0 : 0 Layout.leftMargin: p != "0" ? a == "left" ? -p : a == "right" ? p : 0 : 0
exposedSession: input.exposeSession exposedSession: input.exposeSession
} }
SessionButton { SessionButton {
id: sessionSelect id: sessionSelect
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.preferredHeight: root.height / 14 // Layout.preferredHeight: root.height / 16
Layout.maximumHeight: root.height / 14 // Layout.maximumHeight: root.height / 16
anchors.bottom: parent.bottom
anchors.bottomMargin: parent.height/16
Layout.leftMargin: p != "0" ? a == "left" ? -p : a == "right" ? p : 0 : 0 Layout.leftMargin: p != "0" ? a == "left" ? -p : a == "right" ? p : 0 : 0
} }