From 78b03739a778ab4ecc98cd443b3a21726eeb492e Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Thu, 24 Sep 2020 14:47:56 +0200 Subject: [PATCH] Force tooltip wrap mode because it's not enabled in Qt 5.12... Signed-off-by: Kevin Ottens --- src/gui/tray/Window.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 5d87ca76e..0ac120e16 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -539,10 +539,18 @@ Window { } ToolTip { + id: toolTip visible: activityMouseArea.containsMouse text: activityTextTitle.text + ((activityTextInfo.text !== "") ? "\n\n" + activityTextInfo.text : "") delay: 250 timeout: 10000 + // Can be dropped on more recent Qt, but on 5.12 it doesn't wrap... + contentItem: Text { + text: toolTip.text + font: toolTip.font + wrapMode: Text.Wrap + color: toolTip.palette.toolTipText + } } } Button { -- 2.30.2