[Default Tooltip] Fix icon size
We overwrite implicit size based on the icon loaded nowadays which breaks this. Also, while at it, added an explicit "valid" check for the icon. Differential Revision: https://phabricator.kde.org/D5202
This commit is contained in:
parent
c0f359fab0
commit
7487e208b6
@ -60,10 +60,9 @@ Item {
|
||||
animated: false
|
||||
source: toolTip ? toolTip.icon : ""
|
||||
Layout.alignment: Qt.AlignTop
|
||||
visible: toolTip != null && toolTip.icon != "" && toolTip.image == ""
|
||||
implicitWidth: toolTip && toolTip.icon != "" ? units.iconSizes.medium : 0
|
||||
Layout.preferredWidth: implicitWidth
|
||||
Layout.preferredHeight: implicitWidth
|
||||
visible: toolTip != null && toolTip.icon != "" && toolTip.image == "" && valid
|
||||
Layout.preferredWidth: units.iconSizes.medium
|
||||
Layout.preferredHeight: units.iconSizes.medium
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
Loading…
Reference in New Issue
Block a user