From 7aaee715aff2a3fadf950f686a8be5e0d49c3297 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Mon, 6 Apr 2020 11:11:44 -0600 Subject: [PATCH] Revert "Remove the panel tooltip icon" This reverts commit 863ec93adec605241a1b1f3701054216790c5cc2. This wasn't the right way to remove the icon for all panel widget tooltips. See extended discussion in D27848. --- src/declarativeimports/core/private/DefaultToolTip.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/declarativeimports/core/private/DefaultToolTip.qml b/src/declarativeimports/core/private/DefaultToolTip.qml index 6ce2423f1..9af361bf1 100644 --- a/src/declarativeimports/core/private/DefaultToolTip.qml +++ b/src/declarativeimports/core/private/DefaultToolTip.qml @@ -57,6 +57,16 @@ PlasmaCore.ColorScope { Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter } + PlasmaCore.IconItem { + id: tooltipIcon + animated: false + source: toolTip ? toolTip.icon : "" + Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter + visible: toolTip != null && toolTip.icon != "" && toolTip.image == "" && valid + Layout.preferredWidth: units.iconSizes.medium + Layout.preferredHeight: units.iconSizes.medium + } + ColumnLayout { Layout.maximumWidth: preferredTextWidth