fix(StatusToolTip): remove contentItem by id usage

Otherwise contentItem can't be safely overriden by the clients
This commit is contained in:
Patryk Osmaczko 2022-08-10 10:48:47 +02:00 committed by Michał Cieślak
parent 77d32efa4b
commit e0d24628a4
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,7 @@ ToolTip {
property int offset: 0 property int offset: 0
property alias arrow: arrow property alias arrow: arrow
implicitWidth: Math.min(maxWidth, textContent.implicitWidth + 16) implicitWidth: Math.min(maxWidth, contentItem.implicitWidth + 16)
leftPadding: 8 leftPadding: 8
rightPadding: 8 rightPadding: 8
topPadding: 8 topPadding: 8
@ -65,7 +65,6 @@ ToolTip {
} }
} }
contentItem: StatusBaseText { contentItem: StatusBaseText {
id: textContent
text: statusToolTip.text text: statusToolTip.text
color: Theme.palette.white color: Theme.palette.white
wrapMode: Text.WordWrap wrapMode: Text.WordWrap