on xenial help sign in
Support resolution independent images v2.
1958f05Florian Boucault
qml/Stages/Splash.qml−2
@@ -24,8 +24,6 @@ StyledItem {
24
24
25 property string title: ""
25 property string title: ""
26 property string image: ""
26 property string image: ""
27− onImageChanged: print("IMAGE", image)
28− Component.onCompleted: print("COM IMGE", image)
29 property bool showHeader: true
27 property bool showHeader: true
30 // mimic API of toolkit's MainView component required by MainViewStyle
28 // mimic API of toolkit's MainView component required by MainViewStyle
31 property color backgroundColor: theme.palette.normal.background
29 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.path,//model.splashImage,
159+ "image": model.splashImage,
160 "showHeader": model.splashShowHeader
160 "showHeader": model.splashShowHeader
161 };
161 };
162
162