[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
|
animated: false
|
||||||
source: toolTip ? toolTip.icon : ""
|
source: 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 == "" && valid
|
||||||
implicitWidth: toolTip && toolTip.icon != "" ? units.iconSizes.medium : 0
|
Layout.preferredWidth: units.iconSizes.medium
|
||||||
Layout.preferredWidth: implicitWidth
|
Layout.preferredHeight: units.iconSizes.medium
|
||||||
Layout.preferredHeight: implicitWidth
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
Loading…
Reference in New Issue
Block a user