changed columnlayout to column
This commit is contained in:
parent
b25812f555
commit
5983bf0fe9
1 changed files with 14 additions and 8 deletions
|
@ -13,9 +13,9 @@ Page {
|
||||||
color: settings.theme("PageBackgroundColor")
|
color: settings.theme("PageBackgroundColor")
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
Column {
|
||||||
id: column
|
id: column
|
||||||
//spacing: height / 40
|
spacing: height / 40
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: parent.height * 0.02
|
anchors.topMargin: parent.height * 0.02
|
||||||
|
@ -26,9 +26,12 @@ Page {
|
||||||
font.pixelSize: parent.width * 0.075
|
font.pixelSize: parent.width * 0.075
|
||||||
text: "Calculator"
|
text: "Calculator"
|
||||||
color: settings.theme("PageTextColor")
|
color: settings.theme("PageTextColor")
|
||||||
Layout.fillWidth: true
|
anchors {
|
||||||
Layout.leftMargin: parent.width * 0.5 - width * 0.5
|
left: parent.left
|
||||||
Layout.rightMargin: parent.width * 0.5 - width * 0.5
|
right: parent.right
|
||||||
|
leftMargin: parent.width * 0.05
|
||||||
|
rightMargin: parent.width * 0.05
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
@ -46,9 +49,12 @@ Page {
|
||||||
placeholderText: "interval"
|
placeholderText: "interval"
|
||||||
validator: IntValidator {bottom: 1; top: 100000;}
|
validator: IntValidator {bottom: 1; top: 100000;}
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
horizontalAlignment: Qt.AlignHCenter
|
||||||
Layout.fillWidth: true
|
anchors {
|
||||||
Layout.leftMargin: parent.width * 0.05
|
left: parent.left
|
||||||
Layout.rightMargin: parent.width * 0.05
|
right: parent.right
|
||||||
|
leftMargin: parent.width * 0.05
|
||||||
|
rightMargin: parent.width * 0.05
|
||||||
|
}
|
||||||
Keys.onReturnPressed: root.start()
|
Keys.onReturnPressed: root.start()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue