diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-23 09:52:23 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-23 09:52:23 +0800 |
commit | 9a8c9b16fddd96ec2705f64d7023aedcde71d6e5 (patch) | |
tree | 40e2bd47d4d75752354beb9a1c6a808c2b4da194 /Shop/Checkout.ui.qml | |
parent | 265cb64a4f34298e450b7ea20450434a7762bf7a (diff) |
Auth & Shop reuse custom TextField
Diffstat (limited to 'Shop/Checkout.ui.qml')
-rw-r--r-- | Shop/Checkout.ui.qml | 60 |
1 files changed, 10 insertions, 50 deletions
diff --git a/Shop/Checkout.ui.qml b/Shop/Checkout.ui.qml index 6768217..97125c5 100644 --- a/Shop/Checkout.ui.qml +++ b/Shop/Checkout.ui.qml @@ -3,6 +3,7 @@ import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import Bootstrap 5.3 import Eduport 1.4 +import "../TextField" as TxtFld import "../Label" as Lbl Flickable { @@ -110,16 +111,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: name placeholderText: qsTr("Name") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -140,16 +136,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: email placeholderText: qsTr("Email") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -170,16 +161,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: mobile placeholderText: qsTr("Mobile number") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -199,16 +185,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: country placeholderText: qsTr("Select country") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -229,17 +210,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: province - placeholderText: qsTr( - "Select state") - font.pointSize: 16 - font.family: "roboto" + placeholderText: qsTr("Select state") Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -260,16 +235,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: postal placeholderText: qsTr("PIN code") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -290,16 +260,11 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { id: address placeholderText: qsTr("Address") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } @@ -490,15 +455,10 @@ Flickable { Layout.fillWidth: true RowLayout { anchors.fill: parent - TextField { + TxtFld.Input { placeholderText: qsTr("COUPON CODE") - font.pointSize: 16 - font.family: "roboto" Layout.fillWidth: true Layout.fillHeight: true - background: Rectangle { - color: "transparent" - } } } } |