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
This commit is contained in:
Pascal Precht 2021-08-30 15:44:15 +02:00 committed by Michał Cieślak
parent 4d54a9347f
commit 7734a33a95
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Rectangle {
property string title: "" property string title: ""
property string subTitle: "" property string subTitle: ""
property alias subTitleComponent: statusDescriptionListItemSubTitle
property string value: "" property string value: ""
property StatusIconSettings icon: StatusIconSettings { property StatusIconSettings icon: StatusIconSettings {
width: 23 width: 23
@ -77,9 +78,10 @@ Rectangle {
Row { Row {
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 15 anchors.rightMargin: 16
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
visible: !!statusDescriptionListItem.value visible: !!statusDescriptionListItem.value
spacing: 8
StatusBaseText { StatusBaseText {
text: statusDescriptionListItem.value text: statusDescriptionListItem.value