Commit 2543357a authored by Ismael Asensio's avatar Ismael Asensio
Browse files

[cuttlefish] Fix icon preview sizes

Use implicit width/height so it's also respected by the Layout
parent ba02c88b
......@@ -92,7 +92,7 @@ Rectangle {
}
}
Behavior on Layout.preferredHeight {
NumberAnimation {
NumberAnimation {
duration: Kirigami.Units.longDuration
}
}
......@@ -115,8 +115,8 @@ Rectangle {
Layout.alignment: Qt.AlignBottom
Kirigami.Icon {
source: preview.iconName
width: modelData
height: width
implicitWidth: modelData
implicitHeight: implicitWidth
}
QQC2.Label {
Layout.alignment: Qt.AlignHCenter
......@@ -134,8 +134,8 @@ Rectangle {
Layout.alignment: Qt.AlignHCenter
Kirigami.Icon {
source: preview.iconName
width: cuttlefish.iconSizes[cuttlefish.iconSizes.length - 1]
height: width
implicitWidth: cuttlefish.iconSizes[cuttlefish.iconSizes.length - 1]
implicitHeight: implicitWidth
}
QQC2.Label {
Layout.alignment: Qt.AlignHCenter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment