on xenial help sign in
Support resolution independent images.
commit3cabd42235d6f7104db6da5f5d163d64bc86bbda authorFlorian Boucault <florian.boucault@canonical.com> dateThu 7 Aug 2014, 17:20 (12 years ago) parent786e568
2 files changed+4−2
qml/Stages/Splash.qml+3−1 qml/Stages/SpreadDelegate.qml+1−1
qml/Stages/Splash.qml+3−1
@@ -23,7 +23,9 @@ StyledItem {
2323 id: root
2424
2525 property string title: ""
26− property url image: ""
26+ property string image: ""
27+ onImageChanged: print("IMAGE", image)
28+ Component.onCompleted: print("COM IMGE", image)
2729 property bool showHeader: true
2830 // mimic API of toolkit's MainView component required by MainViewStyle
2931 property color backgroundColor: theme.palette.normal.background
qml/Stages/SpreadDelegate.qml+1−1
@@ -156,7 +156,7 @@ Item {
156156 StateChangeScript {
157157 script: {
158158 var properties = { "title": model.splashTitle ? model.splashTitle : model.name,
159− "image": model.splashImage,
159+ "image": model.path,//model.splashImage,
160160 "showHeader": model.splashShowHeader
161161 };
162162