From 91cafca41fdc3ac366af2d2ebb1fece021685169 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Wed, 10 Aug 2022 10:48:47 +0200 Subject: [PATCH] fix(StatusToolTip): remove contentItem by id usage Otherwise contentItem can't be safely overriden by the clients --- src/StatusQ/Controls/StatusToolTip.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/StatusQ/Controls/StatusToolTip.qml b/src/StatusQ/Controls/StatusToolTip.qml index 3c40779d..fa926e05 100644 --- a/src/StatusQ/Controls/StatusToolTip.qml +++ b/src/StatusQ/Controls/StatusToolTip.qml @@ -18,7 +18,7 @@ ToolTip { property int offset: 0 property alias arrow: arrow - implicitWidth: Math.min(maxWidth, textContent.implicitWidth + 16) + implicitWidth: Math.min(maxWidth, contentItem.implicitWidth + 16) leftPadding: 8 rightPadding: 8 topPadding: 8 @@ -65,7 +65,6 @@ ToolTip { } } contentItem: StatusBaseText { - id: textContent text: statusToolTip.text color: Theme.palette.white wrapMode: Text.WordWrap