aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2020-04-16 14:43:01 +0200
committerMarvin Borner2020-04-16 14:43:01 +0200
commita3886dac1392304e1259e4a85f1b9fbcd1598894 (patch)
tree04cc851a7994280a6721a93368c59d2fffa112ff
parentab3c37cf59b14c517f3cfb374ddd0e8b108ba392 (diff)
v1.2.0: Added loading animation
-rw-r--r--qml/pages/LeaderBoard.qml13
-rw-r--r--rpm/harbour-binaryfun.spec4
-rw-r--r--rpm/harbour-binaryfun.yaml4
3 files changed, 16 insertions, 5 deletions
diff --git a/qml/pages/LeaderBoard.qml b/qml/pages/LeaderBoard.qml
index 39ca742..80b2943 100644
--- a/qml/pages/LeaderBoard.qml
+++ b/qml/pages/LeaderBoard.qml
@@ -40,12 +40,15 @@ Page {
if (xhr.readyState === 4 && xhr.status === 200) {
list.model = JSON.parse(xhr.responseText);
internet.visible = false;
+ loading.running = false;
} else if (xhr.readyState === 4) {
- list.model = []
internet.visible = true;
+ loading.running = false;
}
}
xhr.send()
+ list.model = [];
+ loading.running = true;
}
menu: ContextMenu {
@@ -86,6 +89,14 @@ Page {
visible: false
}
+ BusyIndicator {
+ id: loading
+ size: BusyIndicatorSize.Large
+ anchors.horizontalCenter: parent.horizontalCenter
+ running: false
+ visible: running
+ }
+
SilicaListView {
id: list
clip: true
diff --git a/rpm/harbour-binaryfun.spec b/rpm/harbour-binaryfun.spec
index d2c1e04..0eb220d 100644
--- a/rpm/harbour-binaryfun.spec
+++ b/rpm/harbour-binaryfun.spec
@@ -13,8 +13,8 @@ Name: harbour-binaryfun
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: An awesome binary game
-Version: 1.1.1
-Release: 2
+Version: 1.2.0
+Release: 1
Group: Qt/Qt
License: MIT
URL: https://openrepos.net/content/melvin/binary-fun
diff --git a/rpm/harbour-binaryfun.yaml b/rpm/harbour-binaryfun.yaml
index 1b6b356..d6b45be 100644
--- a/rpm/harbour-binaryfun.yaml
+++ b/rpm/harbour-binaryfun.yaml
@@ -1,7 +1,7 @@
Name: harbour-binaryfun
Summary: An awesome binary game
-Version: 1.1.1
-Release: 2
+Version: 1.2.0
+Release: 1
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Qt/Qt