Revert "Remove the panel tooltip icon"

This reverts commit 863ec93ade.

This wasn't the right way to remove the icon for all panel widget
tooltips. See extended discussion in D27848.
This commit is contained in:
Nate Graham 2020-04-06 11:11:44 -06:00
parent 0051a4f919
commit 7aaee715af

View File

@ -57,6 +57,16 @@ PlasmaCore.ColorScope {
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter 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 { ColumnLayout {
Layout.maximumWidth: preferredTextWidth Layout.maximumWidth: preferredTextWidth