From 857c2bfba12861d34de671cffd6c18775d27a46f 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: Tue, 7 Feb 2023 09:29:03 +0800 Subject: Order Completed draft --- .gitignore | 3 +++ OrderCompletedColumnLayout.ui.qml | 41 +++++++++++++++++++++++++++++++++++++++ QShopper.qmlproject | 15 ++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 OrderCompletedColumnLayout.ui.qml create mode 100644 QShopper.qmlproject diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a656d2b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*.qtds +*.swp diff --git a/OrderCompletedColumnLayout.ui.qml b/OrderCompletedColumnLayout.ui.qml new file mode 100644 index 0000000..4bf79fe --- /dev/null +++ b/OrderCompletedColumnLayout.ui.qml @@ -0,0 +1,41 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 + +ColumnLayout { + property string orderCompletedText: "673290789" + property alias orderCompletedButton: button + + ColumnLayout { + Layout.topMargin: 96 + Layout.leftMargin: 16 + Layout.rightMargin: 16 + Layout.bottomMargin: 96 + + Label { + text: qsTr("Your Order is Completed!") + font.pixelSize: 30 + Layout.alignment: Qt.AlignHCenter + Layout.bottomMargin: 20 + } + + Label { + text: qsTr("Your order ") + orderCompletedText + + qsTr(" has been completed. Your order details" + + " are shown for your personal account.") + font.pixelSize: 16 + wrapMode: Text.Wrap + horizontalAlignment: Text.AlignHCenter + Layout.fillWidth: true + Layout.alignment: Qt.AlignHCenter + Layout.bottomMargin: 32 + } + + Button { + id: button + text: qsTr("View My Orders") + font.pixelSize: 16 + Layout.alignment: Qt.AlignHCenter + } + } +} diff --git a/QShopper.qmlproject b/QShopper.qmlproject new file mode 100644 index 0000000..96f95f7 --- /dev/null +++ b/QShopper.qmlproject @@ -0,0 +1,15 @@ +import QmlProject 1.1 + +Project { + mainFile: "OrderCompletedColumnLayout.ui.qml" + + QmlFiles { + directory: "." + } + + qdsVersion: "3.9" + quickVersion: "2.15" + multilanguageSupport: true + supportedLanguages: ["en", "id"] + primaryLanguage: "en" +} -- cgit v1.2.3