Commit aca5af5b authored by Ismael Asensio's avatar Ismael Asensio
Browse files

[cuttlefix] Fix Dual Montage icon size

- Use implicit width/height so that the layout respect the sizes
  (required after frameworks/kirigami!111)
- Make the parameter in `onMontage()` explicit
- Fix method parameter typo
parent 478db842
...@@ -56,8 +56,8 @@ Item { ...@@ -56,8 +56,8 @@ Item {
Layout.alignment: Qt.AlignBottom Layout.alignment: Qt.AlignBottom
Kirigami.Icon { Kirigami.Icon {
source: preview.iconName source: preview.iconName
width: modelData implicitWidth: modelData
height: width implicitHeight: implicitWidth
} }
QQC2.Label { QQC2.Label {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
...@@ -107,8 +107,8 @@ Item { ...@@ -107,8 +107,8 @@ Item {
Layout.alignment: Qt.AlignBottom Layout.alignment: Qt.AlignBottom
Kirigami.Icon { Kirigami.Icon {
source: preview.iconName source: preview.iconName
width: modelData implicitWidth: modelData
height: width implicitHeight: implicitWidth
} }
QQC2.Label { QQC2.Label {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
......
...@@ -33,7 +33,7 @@ MenuBar { ...@@ -33,7 +33,7 @@ MenuBar {
} }
MenuItem { MenuItem {
text: i18n("Breeze (Normal) and Breeze Dark") text: i18n("Breeze (Normal) and Breeze Dark")
onTriggered: root.montage(0) onTriggered: root.montage(3)
} }
} }
MenuSeparator {} MenuSeparator {}
......
...@@ -56,8 +56,8 @@ Kirigami.ApplicationWindow { ...@@ -56,8 +56,8 @@ Kirigami.ApplicationWindow {
function onQuit() { cuttlefish.close() } function onQuit() { cuttlefish.close() }
function onZoomIn() { tools.slider.value += 1 } function onZoomIn() { tools.slider.value += 1 }
function onZoomOut() { tools.slider.value -= 1 } function onZoomOut() { tools.slider.value -= 1 }
function onMontage() { function onMontage(montageType) {
switch(type) { switch(montageType) {
case 0: case 0:
previewPane.iconPreview.shot("active") previewPane.iconPreview.shot("active")
break; break;
......
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