From 6e3ecee174edffa9e169e8dc70e68178c2ecbeb6 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: Fri, 25 Jun 2021 20:40:41 +0800 Subject: Account uses ProductCardForm --- AccountForm.ui.qml | 14 ++++---------- components/ListWithIconForm.ui.qml | 2 ++ 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 -- cgit v1.2.3