on xenial help sign in
Support resolution independent images.
3cabd42Florian Boucault
qml/Stages/Splash.qml+3−1
@@ -23,7 +23,9 @@ StyledItem {
23 id: root
23 id: root
24
24
25 property string title: ""
25 property string title: ""
26− property url image: ""
26+ property string image: ""
27+ onImageChanged: print("IMAGE", image)
28+ Component.onCompleted: print("COM IMGE", image)
27 property bool showHeader: true
29 property bool showHeader: true
28 // mimic API of toolkit's MainView component required by MainViewStyle
30 // mimic API of toolkit's MainView component required by MainViewStyle
29 property color backgroundColor: theme.palette.normal.background
31 property color backgroundColor: theme.palette.normal.background
qml/Stages/SpreadDelegate.qml+1−1
@@ -156,7 +156,7 @@ Item {
156 StateChangeScript {
156 StateChangeScript {
157 script: {
157 script: {
158 var properties = { "title": model.splashTitle ? model.splashTitle : model.name,
158 var properties = { "title": model.splashTitle ? model.splashTitle : model.name,
159− "image": model.splashImage,
159+ "image": model.path,//model.splashImage,
160 "showHeader": model.splashShowHeader
160 "showHeader": model.splashShowHeader
161 };
161 };
162
162