v0.0.8
This commit is contained in:
parent
ab69505b80
commit
f59704545b
1 changed files with 98 additions and 16 deletions
21
Main.qml
21
Main.qml
|
|
@ -578,6 +578,20 @@ Window {
|
|||
color: root.accent_color
|
||||
font.pixelSize: root.font_normal_text_size
|
||||
}
|
||||
Text {
|
||||
id: last_updated_text
|
||||
property string last_updated: ""
|
||||
text: "Last Updated On Server On: " + last_updated
|
||||
anchors {
|
||||
top: info_percent_text.bottom
|
||||
topMargin: 10
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: root.accent_color
|
||||
font.pixelSize: root.font_normal_text_size
|
||||
visible: config.mode === "http" ? true : false
|
||||
}
|
||||
|
||||
Text {
|
||||
id: error_text
|
||||
|
|
@ -585,7 +599,7 @@ Window {
|
|||
text: "Error: " + error_string
|
||||
visible: error_string === "" ? false : true;
|
||||
anchors {
|
||||
top: info_percent_text.bottom
|
||||
top: last_updated_text.bottom
|
||||
topMargin: 10
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
|
@ -644,6 +658,11 @@ Window {
|
|||
error_text.error_string = err;
|
||||
}
|
||||
|
||||
onLastUpdatedChanged: (update) => {
|
||||
console.log("QML Last Updated: ", update);
|
||||
last_updated_text.last_updated = update;
|
||||
}
|
||||
|
||||
onDistanceChanged: {
|
||||
console.log("Distance changed");
|
||||
root.distance = listener.distance;
|
||||
|
|
|
|||
Loading…
Reference in a new issue