feat(StatusListItem): adding title text icon (#785)

Needed for https://github.com/status-im/status-desktop/issues/6494
This commit is contained in:
Alexandra Betouni 2022-07-20 16:53:03 +03:00 committed by Michał Cieślak
parent 9dacfb9bb6
commit 03bc2e6184

View File

@ -20,6 +20,7 @@ Rectangle {
property string subTitle: ""
property string tertiaryTitle: ""
property string label: ""
property string titleTextIcon: ""
property real leftPadding: 16
property real rightPadding: 16
property bool enabled: true
@ -230,6 +231,16 @@ Rectangle {
}
}
StatusIcon {
width: visible ? 12 : 0
height: visible ? 12 : 0
visible: !!statusListItem.titleTextIcon
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: statusListItemTitle.contentWidth + 6
icon: statusListItem.titleTextIcon
}
StatusToolTip {
id: statusListItemTitleTooltip
text: statusListItemTitle.text