summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-23 19:29:34 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-23 19:29:34 +0800
commit5cc92d57e6082649b1eb1a02ee48e3517aa383c0 (patch)
tree57095dcedbf7c866a6ec5b8a20c0ff369e50e9fd
parent848e14da8ea2a2421069dcd36a3766cbbb0119a8 (diff)
Embed AccountForm as is into TransactionForm
-rw-r--r--TransactionForm.ui.qml52
1 files changed, 4 insertions, 48 deletions
diff --git a/TransactionForm.ui.qml b/TransactionForm.ui.qml
index 778b937..5dd7c7c 100644
--- a/TransactionForm.ui.qml
+++ b/TransactionForm.ui.qml
@@ -4,8 +4,7 @@ import QtQuick.Layouts 1.15
Rectangle {
property alias cartView: cart
- property alias skuTextField: addProduct
- property alias submitButton: submit
+ property alias accountView: account
color: "#121212"
border.color: "#00000000"
@@ -22,57 +21,14 @@ Rectangle {
ScrollBar.horizontal: ScrollBar {}
}
- TextField {
- id: addCustomer
- height: 56
- color: "#deffffff"
- placeholderText: "Add Customer"
- placeholderTextColor: "#99ffffff"
+ AccountForm {
+ id: account
anchors.left: parent.left
anchors.right: parent.right
anchors.top: cart.bottom
- font.pixelSize: 20
- verticalAlignment: Text.AlignVCenter
- font.family: "Roboto Mono"
- selectionColor: "#ffffff"
- anchors.rightMargin: 16
- anchors.leftMargin: 16
- anchors.topMargin: 16
- }
-
- TextField {
- id: addProduct
- height: 56
- color: "#deffffff"
- placeholderText: "Add Product"
- placeholderTextColor: "#99ffffff"
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.top: addCustomer.bottom
- font.pixelSize: 20
- verticalAlignment: Text.AlignVCenter
- selectionColor: "#ffffff"
- anchors.rightMargin: 16
- anchors.leftMargin: 16
- font.family: "Roboto Mono"
- anchors.topMargin: 16
- }
-
- Button {
- id: submit
- text: "Tagih"
- anchors.left: parent.left
- anchors.right: parent.right
anchors.bottom: parent.bottom
- font.letterSpacing: 1.24
- spacing: 8
- autoRepeat: false
- highlighted: false
- flat: false
- font.capitalization: Font.MixedCase
- font.family: "Roboto Mono"
anchors.rightMargin: 16
anchors.leftMargin: 16
- anchors.bottomMargin: 16
+ anchors.topMargin: 16
}
}