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 Pascal Precht
parent a963ef80c8
commit 1749cc0e3b
1 changed files with 3 additions and 1 deletions

View File

@ -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