From 7734a33a95839c0b7babdf923237e0760f98c09e Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 30 Aug 2021 15:44:15 +0200 Subject: [PATCH] feat(StatusDescriptionListItem): expose subtitle component for fine control This enables users to get more control over the subtitle to set things like `elide` and font properties. Closes: #356 --- .../src/StatusQ/Components/StatusDescriptionListItem.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/StatusQ/src/StatusQ/Components/StatusDescriptionListItem.qml b/ui/StatusQ/src/StatusQ/Components/StatusDescriptionListItem.qml index 9f79acfcd3..a970b6e64f 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusDescriptionListItem.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusDescriptionListItem.qml @@ -8,6 +8,7 @@ Rectangle { property string title: "" property string subTitle: "" + property alias subTitleComponent: statusDescriptionListItemSubTitle property string value: "" property StatusIconSettings icon: StatusIconSettings { width: 23 @@ -77,9 +78,10 @@ Rectangle { Row { anchors.right: parent.right - anchors.rightMargin: 15 + anchors.rightMargin: 16 anchors.verticalCenter: parent.verticalCenter visible: !!statusDescriptionListItem.value + spacing: 8 StatusBaseText { text: statusDescriptionListItem.value