From eb2f067b60a0fd2310a8ff8dc2dd2b5ff16bdf03 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: Thu, 19 Jan 2023 23:25:56 +0800 Subject: Aliases & pixel size --- ClassicDetailFlickable.ui.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ClassicDetailFlickable.ui.qml b/ClassicDetailFlickable.ui.qml index d76211f..a1a73da 100644 --- a/ClassicDetailFlickable.ui.qml +++ b/ClassicDetailFlickable.ui.qml @@ -6,6 +6,11 @@ import QtGraphicalEffects 1.15 Flickable { id: flickable property alias detailImage: image + property alias detailPrice: price + property alias detailOriginalPrice: originalPrice + property alias detailDiscount: discount + property alias detailTime: time + property alias detailTrial: trial property alias detailBuy: buy contentHeight: body.height @@ -85,26 +90,31 @@ Flickable { RowLayout { Label { + id: price text: "$150" font.pixelSize: 21 } Label { + id: originalPrice text: "$350" font.pixelSize: 15 font.strikeout: true } Label { + id: discount text: qsTr("60% off") font.pixelSize: 14 } } RowLayout { + id: time Label { text: qsTr("5 days left at this price") + font.pixelSize: 15 } } } -- cgit v1.2.3