mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
qml: fix subdialog box width calculation
This commit is contained in:
parent
c8409d7419
commit
1b7d3fafc0
1 changed files with 7 additions and 7 deletions
14
main.qml
14
main.qml
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue