-
Notifications
You must be signed in to change notification settings - Fork 0
/
XLoadingCoords.qml
51 lines (50 loc) · 1.2 KB
/
XLoadingCoords.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import QtQuick 2.0
Rectangle {
id: r
color: 'black'
anchors.fill: parent
visible: false
property string ciudad: '...????'
onVisibleChanged: {
if(!visible){
labelLoadingLugar.font.pixelSize=app.fs*2
labelLoadingLugar.visible=false
}
if(visible){
tll.start()
}
}
MouseArea{
anchors.fill: r
onClicked: r.visible=false
}
Rectangle{
anchors.fill: r
color: 'black'
opacity: 0.5
}
Text{
id: labelLoadingLugar
width: r.width*0.8
text: 'Cargando Coordenadas de '+r.ciudad
color: 'white'
font.pixelSize: app.fs*2
wrapMode: Text.WordWrap
anchors.centerIn: parent
visible: false
}
Timer{
id: tll
running: false
repeat: true
interval: 50
onTriggered: {
if(labelLoadingLugar.contentHeight+app.fs*2>r.height){
labelLoadingLugar.font.pixelSize-=labelLoadingLugar.font.pixelSize*0.1
}else{
labelLoadingLugar.visible=true
tll.stop()
}
}
}
}