Just a test.
This commit is contained in:
parent
279f2a632c
commit
4716de95d5
@ -35,32 +35,37 @@ Column {
|
|||||||
visible: false
|
visible: false
|
||||||
source: stationImage ? Qt.resolvedUrl(stationImage) : ""// ? stationImage : stationimage.visible = false
|
source: stationImage ? Qt.resolvedUrl(stationImage) : ""// ? stationImage : stationimage.visible = false
|
||||||
|
|
||||||
/* BusyIndicator {
|
/* BusyIndicator {
|
||||||
size: BusyIndicatorSize.Medium
|
size: BusyIndicatorSize.Medium
|
||||||
anchors.centerIn: stationimage
|
anchors.centerIn: stationimage
|
||||||
running: stationimage.status != Image.Ready && stationimage.visible//appActive && stationimage.status != Image.Ready
|
running: stationimage.status === Image.Loading && stationimage.visible //appActive && stationimage.status != Image.Ready
|
||||||
} */
|
} */
|
||||||
onStatusChanged:
|
onStatusChanged:
|
||||||
switch(stationimage.status){
|
switch(stationimage.status){
|
||||||
case Image.Null:
|
case Image.Null:
|
||||||
loading = false
|
loading = false
|
||||||
visible = false
|
visible = false
|
||||||
|
console.log("*** NULL: "+stationimage.status)
|
||||||
break;
|
break;
|
||||||
case Image.Ready:
|
case Image.Ready:
|
||||||
loading = false
|
loading = false
|
||||||
visible = true
|
visible = true
|
||||||
|
console.log("*** READY: "+stationimage.status)
|
||||||
break;
|
break;
|
||||||
case Image.Loading:
|
case Image.Loading:
|
||||||
loading = true
|
loading = true
|
||||||
|
console.log("*** LOADING: "+stationimage.status)
|
||||||
break;
|
break;
|
||||||
case Image.Error:
|
case Image.Error:
|
||||||
loading = false
|
loading = false
|
||||||
visible = false
|
visible = false
|
||||||
|
console.log("*** ERROR: "+stationimage.status)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
loading = false
|
loading = false
|
||||||
visible = false
|
visible = false
|
||||||
}
|
console.log("*** DEFAULT: "+stationimage.status)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: stationlabel
|
id: stationlabel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user