Commit d531ee58 authored by Volker Krause's avatar Volker Krause Committed by Albert Astals Cid
Browse files

Resolve URLs for image assets

Makes no difference with Qt5, but required by Qt6.
parent 249d5a24
Pipeline #128583 passed with stage
in 38 seconds
......@@ -238,7 +238,7 @@ Kirigami.ScrollablePage {
delegate: Kirigami.Card {
id: listItem
banner {
source: img
source: Qt.resolvedUrl(img)
title: title
titleAlignment: Qt.AlignBottom | Qt.AlignLeft
}
......
......@@ -55,7 +55,7 @@ Kirigami.ScrollablePage {
Component.onCompleted: {
for (var i = 0; i < 50; ++i) {
mainModel.append({"title": "Item " + i,
"image": "../banner.jpg",
"image": Qt.resolvedUrl("../banner.jpg"),
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam id risus id augue euismod accumsan. Nunc vestibulum placerat bibendum.",
"actions": [{text: "Action 1", icon: "add-placemark"},
{text: "Action 2", icon: "address-book-new-symbolic"}]
......
......@@ -80,7 +80,7 @@ Kirigami.ScrollablePage {
}
]
banner {
source: "../banner.jpg"
source: Qt.resolvedUrl("../banner.jpg")
title: qsTr("Card")
}
contentItem: Controls.Label {
......@@ -118,7 +118,7 @@ Kirigami.ScrollablePage {
}
]
banner {
source: "../banner.jpg"
source: Qt.resolvedUrl("../banner.jpg")
title: "Title Alignment"
titleAlignment: Qt.AlignLeft | Qt.AlignBottom
}
......@@ -156,7 +156,7 @@ Kirigami.ScrollablePage {
}
Kirigami.Card {
banner.source: "../banner.jpg"
banner.source: Qt.resolvedUrl("../banner.jpg")
header: Rectangle {
color: Qt.rgba(0,0,0,0.3)
......@@ -215,7 +215,7 @@ Kirigami.ScrollablePage {
}
]
banner {
source: "../banner.jpg"
source: Qt.resolvedUrl("../banner.jpg")
title: "Title"
}
contentItem: Controls.Label {
......
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