Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Kirigami Gallery
Commits
d531ee58
Commit
d531ee58
authored
Jan 03, 2022
by
Volker Krause
Committed by
Albert Astals Cid
Jan 25, 2022
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
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/data/contents/ui/MainPage.qml
View file @
d531ee58
...
...
@@ -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
}
...
...
src/data/contents/ui/gallery/CardsGridViewGallery.qml
View file @
d531ee58
...
...
@@ -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
"
}]
...
...
src/data/contents/ui/gallery/CardsLayoutGallery.qml
View file @
d531ee58
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment