diff --git a/qml/calculator/CalculatorStartPage.qml b/qml/calculator/CalculatorStartPage.qml index 74b4f7e..238d515 100644 --- a/qml/calculator/CalculatorStartPage.qml +++ b/qml/calculator/CalculatorStartPage.qml @@ -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() }