From e0d24628a45c0f5c19170e790973b4a82ae651d3 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 --- ui/StatusQ/src/StatusQ/Controls/StatusToolTip.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusToolTip.qml b/ui/StatusQ/src/StatusQ/Controls/StatusToolTip.qml index 3c40779d0d..fa926e0559 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusToolTip.qml +++ b/ui/StatusQ/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