Don't fade animate icon in plasma tooltips

PlasmaCore.IconItem has a fade animation when changing source.
Clearing the source when tooltip is not visible eliminates the
animation.

REVIEW: 125178
This commit is contained in:
David Rosca 2015-09-14 11:06:00 +02:00
parent 0df4823e8b
commit 4b4461d76b

View File

@ -54,7 +54,7 @@ Item {
PlasmaCore.IconItem { PlasmaCore.IconItem {
id: tooltipIcon id: tooltipIcon
source: toolTip ? toolTip.icon : "" source: tooltipContentItem.visible && toolTip ? toolTip.icon : ""
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
visible: toolTip != null && toolTip.icon != "" && toolTip.image == "" visible: toolTip != null && toolTip.icon != "" && toolTip.image == ""
implicitWidth: toolTip && toolTip.icon != "" ? units.iconSizes.medium : 0 implicitWidth: toolTip && toolTip.icon != "" ? units.iconSizes.medium : 0