summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-25 20:40:41 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-25 20:40:41 +0800
commit6e3ecee174edffa9e169e8dc70e68178c2ecbeb6 (patch)
treeccf9c03ad338ce8e5fb7db07bb2a08b7fecdd203
parent0543d357d527d4cac3a5b90b8e17dfeffdf9c6c3 (diff)
Account uses ProductCardForm
-rw-r--r--AccountForm.ui.qml14
-rw-r--r--components/ListWithIconForm.ui.qml2
2 files changed, 6 insertions, 10 deletions
diff --git a/AccountForm.ui.qml b/AccountForm.ui.qml
index c5495c3..3d77c79 100644
--- a/AccountForm.ui.qml
+++ b/AccountForm.ui.qml
@@ -1,9 +1,10 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Controls.Material 2.15
+import "components"
Rectangle {
- property alias skuTextField: addProduct
+ property alias item: addProduct
property alias submitButton: submit
color: "#121212"
border.color: "#00000000"
@@ -26,21 +27,14 @@ Rectangle {
anchors.topMargin: 16
}
- TextField {
+ ListWithIconForm {
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 {
@@ -60,4 +54,4 @@ Rectangle {
anchors.leftMargin: 16
anchors.bottomMargin: 16
}
-} \ No newline at end of file
+}
diff --git a/components/ListWithIconForm.ui.qml b/components/ListWithIconForm.ui.qml
index c86a443..5e03180 100644
--- a/components/ListWithIconForm.ui.qml
+++ b/components/ListWithIconForm.ui.qml
@@ -3,6 +3,8 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
Item {
+ property alias button: listButton
+
width: 360
height: 48
Layout.minimumWidth: 360