From 5983bf0fe9e854555e1e67431791b851ad602f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Gr=C3=BCtzner?= Date: Thu, 20 Dec 2018 12:55:15 +0100 Subject: [PATCH] changed columnlayout to column --- qml/calculator/CalculatorStartPage.qml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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() }