From d18f2df2d631606a30922148b019b5cef1764f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 23 Mar 2023 10:38:54 +0800 Subject: Each header has its own QML --- Shop/Checkout.ui.qml | 22 +++++++--------------- Shop/Course.ui.qml | 2 +- 2 files changed, 8 insertions(+), 16 deletions(-) (limited to 'Shop') diff --git a/Shop/Checkout.ui.qml b/Shop/Checkout.ui.qml index 97125c5..7b57110 100644 --- a/Shop/Checkout.ui.qml +++ b/Shop/Checkout.ui.qml @@ -76,11 +76,8 @@ Flickable { right: parent.right } - Lbl.Hx { + Lbl.H5 { text: qsTr("Personal Details") - font.pointSize: 20.1 - + .00075 - * parent.width Layout.fillWidth: true Layout.rightMargin: 16 Layout.leftMargin: 16 @@ -273,9 +270,8 @@ Flickable { ColumnLayout { - Lbl.Hx { + Lbl.H5 { text: qsTr("Payment method") - font.pointSize: 20.1 + .00075 * parent.width Layout.fillWidth: true Layout.margins: 16 } @@ -406,11 +402,9 @@ Flickable { left: parent.left right: parent.right } - Lbl.Hx { + + Lbl.H4 { text: qsTr("Order Summary") - font.pointSize: 20.625 - + .0046875 - * parent.width Layout.fillWidth: true Layout.rightMargin: 16 Layout.leftMargin: 16 @@ -541,7 +535,7 @@ Flickable { anchors.verticalCenter: parent.verticalCenter } - Lbl.Hx { + Lbl.H6 { id: priceValue text: "$500" anchors { @@ -582,17 +576,15 @@ Flickable { implicitHeight: totalLabel.implicitHeight + totalValue.implicitHeight - Lbl.Hx { + Lbl.H5 { id: totalLabel text: qsTr("Total") - font.pointSize: 20.1 + .00075 * parent.width anchors.verticalCenter: parent.verticalCenter } - Lbl.Hx { + Lbl.H5 { id: totalValue text: "$480" - font.pointSize: 20.1 + .00075 * parent.width anchors { right: parent.right verticalCenter: parent.verticalCenter diff --git a/Shop/Course.ui.qml b/Shop/Course.ui.qml index 5409de9..b743ee5 100644 --- a/Shop/Course.ui.qml +++ b/Shop/Course.ui.qml @@ -54,7 +54,7 @@ ColumnLayout { ColumnLayout { Layout.topMargin: 16 - Lbl.Hx { + Lbl.H6 { Layout.fillWidth: true text: titleText } -- cgit v1.2.3