From 155c4d00ababfeeb8574e2b6d51e59ac9216fcab 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: Mon, 13 Feb 2023 20:42:14 +0800 Subject: Shorten names Use something like import "qshopper" as Shopper --- OrderCompleted.ui.qml | 62 ++++++++++++++++++++++++++++++++++++++++++ OrderCompletedFlickable.ui.qml | 62 ------------------------------------------ QShopper.qmlproject | 2 +- 3 files changed, 63 insertions(+), 63 deletions(-) create mode 100644 OrderCompleted.ui.qml delete mode 100644 OrderCompletedFlickable.ui.qml diff --git a/OrderCompleted.ui.qml b/OrderCompleted.ui.qml new file mode 100644 index 0000000..ebf6bc2 --- /dev/null +++ b/OrderCompleted.ui.qml @@ -0,0 +1,62 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 + +Flickable { + property alias orderCompletedText: text + property alias orderCompletedButton: button + contentHeight: body.height + + FontLoader { + id: jost + name: "Jost" + source: "Jost/Jost-Regular.ttf" + } + + ColumnLayout { + id: body + anchors { + top: parent.top + left: parent.left + right: parent.right + } + + ColumnLayout { + Layout.topMargin: 96 + Layout.leftMargin: 16 + Layout.rightMargin: 16 + Layout.bottomMargin: 96 + + Label { + text: qsTr("Your Order is Completed!") + font.pixelSize: 30 + font.family: jost.name + wrapMode: Text.Wrap + horizontalAlignment: Text.AlignHCenter + Layout.fillWidth: true + Layout.bottomMargin: 20 + } + + Label { + id: text + text: qsTr("Your order 673290789 has been " + + "completed. Your order details are " + + "shown for your personal account.") + font.pixelSize: 16 + font.family: jost.name + wrapMode: Text.Wrap + horizontalAlignment: Text.AlignHCenter + Layout.fillWidth: true + Layout.bottomMargin: 32 + } + + Button { + id: button + text: qsTr("View My Orders") + font.pixelSize: 16 + font.family: jost.name + Layout.alignment: Qt.AlignHCenter + } + } + } +} diff --git a/OrderCompletedFlickable.ui.qml b/OrderCompletedFlickable.ui.qml deleted file mode 100644 index ebf6bc2..0000000 --- a/OrderCompletedFlickable.ui.qml +++ /dev/null @@ -1,62 +0,0 @@ -import QtQuick 2.15 -import QtQuick.Controls 2.15 -import QtQuick.Layouts 1.15 - -Flickable { - property alias orderCompletedText: text - property alias orderCompletedButton: button - contentHeight: body.height - - FontLoader { - id: jost - name: "Jost" - source: "Jost/Jost-Regular.ttf" - } - - ColumnLayout { - id: body - anchors { - top: parent.top - left: parent.left - right: parent.right - } - - ColumnLayout { - Layout.topMargin: 96 - Layout.leftMargin: 16 - Layout.rightMargin: 16 - Layout.bottomMargin: 96 - - Label { - text: qsTr("Your Order is Completed!") - font.pixelSize: 30 - font.family: jost.name - wrapMode: Text.Wrap - horizontalAlignment: Text.AlignHCenter - Layout.fillWidth: true - Layout.bottomMargin: 20 - } - - Label { - id: text - text: qsTr("Your order 673290789 has been " - + "completed. Your order details are " - + "shown for your personal account.") - font.pixelSize: 16 - font.family: jost.name - wrapMode: Text.Wrap - horizontalAlignment: Text.AlignHCenter - Layout.fillWidth: true - Layout.bottomMargin: 32 - } - - Button { - id: button - text: qsTr("View My Orders") - font.pixelSize: 16 - font.family: jost.name - Layout.alignment: Qt.AlignHCenter - } - } - } -} diff --git a/QShopper.qmlproject b/QShopper.qmlproject index 9ff52c8..5bc6d56 100644 --- a/QShopper.qmlproject +++ b/QShopper.qmlproject @@ -1,7 +1,7 @@ import QmlProject 1.1 Project { - mainFile: "OrderCompletedFlickable.ui.qml" + mainFile: "OrderCompleted.ui.qml" QmlFiles { directory: "." -- cgit v1.2.3