Commit c1c76218 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

QML: Show large image in picture collapsible.

parent 3487269a
......@@ -128,11 +128,11 @@ Dialog {
Item {
id: imageItem
width: 120
width: parent.width
height: 120
Image {
sourceSize.width: 120
sourceSize.height: 120
anchors.fill: parent
fillMode: Image.PreserveAspectFit
source: app.coverArtImageId
cache: false
}
......
......@@ -5,14 +5,14 @@ Collapsible {
text: qsTr("Picture")
content: Item {
width: parent.width
height: 120
height: coverArtImage.height
Image {
id: coverArtImage
anchors.top: parent.top
width: 120
sourceSize.width: 120
sourceSize.height: 120
width: parent.width > 0 && parent.width < sourceSize.width
? parent.width : sourceSize.width
fillMode: Image.PreserveAspectFit
source: app.coverArtImageId
cache: false
}
......
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