From d87b6b88bcd852d51d2b2a53aeecdedc28cae8d9 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: Wed, 23 Jun 2021 07:54:49 +0800 Subject: Product units --- ProductForm.ui.qml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 ProductForm.ui.qml diff --git a/ProductForm.ui.qml b/ProductForm.ui.qml new file mode 100644 index 0000000..f291124 --- /dev/null +++ b/ProductForm.ui.qml @@ -0,0 +1,59 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 +import QtGraphicalEffects 1.15 + +Rectangle { + property alias previewImage: image + property alias nameLabel: nameLabel + property alias priceLabel: priceLabel + + id: rectangle + width: 328 + height: 132 + color: "#2a2a2a" + layer.enabled: true + layer.effect: OpacityMask { + maskSource: Rectangle { + anchors.centerIn: parent + width: rectangle.width + height: rectangle.height + radius: 8 + } + } + + RowLayout { + Image { + id: image + width: 64 + height: 64 + layer.enabled: true + layer.effect: OpacityMask { + maskSource: Rectangle { + anchors.centerIn: parent + width: image.width + height: image.height + radius: 8 + } + } + } + + ColumnLayout { + Label { + id: nameLabel + text: "Nama produk" + color: "#cccccc" + } + Label { + id: quantityLabel + text: "12 unit" + color: "#888888" + } + Label { + id: priceLabel + text: "Rp999.999.999" + color: "#cccccc" + } + } + } +} -- cgit v1.2.3