Image management (QML image errors unavoidable)
This commit is contained in:
parent
4c40fc171d
commit
5aaed8fafe
@ -4,7 +4,7 @@ import QtGraphicalEffects 1.0
|
|||||||
//import "../../helpers/jsFunctions.js" as JS
|
//import "../../helpers/jsFunctions.js" as JS
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
property string stationImage: "" //stationImage
|
property string stationImage: "../images/community.png" //stationImage
|
||||||
property string stationLabel: "" //imagelabel
|
property string stationLabel: "" //imagelabel
|
||||||
property bool flag: false
|
property bool flag: false
|
||||||
property string flagimage: "" //flagimage
|
property string flagimage: "" //flagimage
|
||||||
@ -33,7 +33,7 @@ Column {
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
visible: false
|
visible: false
|
||||||
source: stationImage ? Qt.resolvedUrl(stationImage) : ""// ? stationImage : stationimage.visible = false
|
source: stationImage ? Qt.resolvedUrl(stationImage) : "../images/community.png"// ? stationImage : stationimage.visible = false
|
||||||
|
|
||||||
/* BusyIndicator {
|
/* BusyIndicator {
|
||||||
size: BusyIndicatorSize.Medium
|
size: BusyIndicatorSize.Medium
|
||||||
@ -45,6 +45,7 @@ Column {
|
|||||||
case Image.Null:
|
case Image.Null:
|
||||||
loading = false
|
loading = false
|
||||||
visible = false
|
visible = false
|
||||||
|
stationImage = "../images/community.png"
|
||||||
break;
|
break;
|
||||||
case Image.Ready:
|
case Image.Ready:
|
||||||
loading = false
|
loading = false
|
||||||
@ -56,10 +57,12 @@ Column {
|
|||||||
case Image.Error:
|
case Image.Error:
|
||||||
loading = false
|
loading = false
|
||||||
visible = false
|
visible = false
|
||||||
|
stationImage = "../images/community.png"
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
loading = false
|
loading = false
|
||||||
visible = false
|
visible = false
|
||||||
|
stationImage = "../images/community.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user