changed columnlayout to column

This commit is contained in:
Max Grützner 2018-12-20 12:55:15 +01:00
parent b25812f555
commit 5983bf0fe9

View file

@ -13,9 +13,9 @@ Page {
color: settings.theme("PageBackgroundColor")
}
ColumnLayout {
Column {
id: column
//spacing: height / 40
spacing: height / 40
width: parent.width
anchors.fill: parent
anchors.topMargin: parent.height * 0.02
@ -26,9 +26,12 @@ Page {
font.pixelSize: parent.width * 0.075
text: "Calculator"
color: settings.theme("PageTextColor")
Layout.fillWidth: true
Layout.leftMargin: parent.width * 0.5 - width * 0.5
Layout.rightMargin: parent.width * 0.5 - width * 0.5
anchors {
left: parent.left
right: parent.right
leftMargin: parent.width * 0.05
rightMargin: parent.width * 0.05
}
}
Label {
@ -46,9 +49,12 @@ Page {
placeholderText: "interval"
validator: IntValidator {bottom: 1; top: 100000;}
horizontalAlignment: Qt.AlignHCenter
Layout.fillWidth: true
Layout.leftMargin: parent.width * 0.05
Layout.rightMargin: parent.width * 0.05
anchors {
left: parent.left
right: parent.right
leftMargin: parent.width * 0.05
rightMargin: parent.width * 0.05
}
Keys.onReturnPressed: root.start()
}