qml: fix subdialog box width calculation

This commit is contained in:
Floris Bos 2021-03-26 15:55:54 +01:00
parent c8409d7419
commit 1b7d3fafc0

View file

@ -16,9 +16,9 @@ ApplicationWindow {
width: imageWriter.isEmbeddedMode() ? -1 : 680 width: imageWriter.isEmbeddedMode() ? -1 : 680
height: imageWriter.isEmbeddedMode() ? -1 : 420 height: imageWriter.isEmbeddedMode() ? -1 : 420
minimumWidth: imageWriter.isEmbeddedMode() ? -1 : 680 minimumWidth: imageWriter.isEmbeddedMode() ? -1 : 680
maximumWidth: imageWriter.isEmbeddedMode() ? -1 : 680 //maximumWidth: imageWriter.isEmbeddedMode() ? -1 : 680
minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 420 minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 420
maximumHeight: imageWriter.isEmbeddedMode() ? -1 : 420 //maximumHeight: imageWriter.isEmbeddedMode() ? -1 : 420
title: qsTr("Raspberry Pi Imager v%1").arg(imageWriter.constantVersion()) title: qsTr("Raspberry Pi Imager v%1").arg(imageWriter.constantVersion())
@ -63,7 +63,7 @@ ApplicationWindow {
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
source: imageWriter.isEmbeddedMode() ? "icons/rpi2-hires.png" : "icons/rpi2.png" source: window.height > 700 ? "icons/rpi2-hires.png" : "icons/rpi2.png"
width: window.width width: window.width
height: window.height/2 height: window.height/2
} }
@ -322,8 +322,8 @@ ApplicationWindow {
Item { Item {
clip: true clip: true
width: oslist.width Layout.preferredWidth: oslist.width
height: oslist.height Layout.preferredHeight: oslist.height
SwipeView { SwipeView {
id: osswipeview id: osswipeview
@ -606,8 +606,8 @@ ApplicationWindow {
Item { Item {
clip: true clip: true
width: dstlist.width Layout.preferredWidth: dstlist.width
height: dstlist.height Layout.preferredHeight: dstlist.height
ListView { ListView {
id: dstlist id: dstlist