Force tooltip wrap mode because it's not enabled in Qt 5.12...

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-09-24 14:47:56 +02:00
parent 16b709edbc
commit 78b03739a7
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -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 {