aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2020-04-07 23:26:23 +0200
committerMarvin Borner2020-04-07 23:26:23 +0200
commitb21cf008af104e0d7dd470f93430a02137b0822f (patch)
treec06b463bdab847a5b2f65a9e79014a0708f9b480
parent18805982a81fb3d956f8e3ebd5e9f63cdbc7f110 (diff)
VERY small fixes in the leaderboard
-rw-r--r--qml/pages/LeaderBoard.qml6
-rw-r--r--rpm/harbour-binaryfun.spec2
-rw-r--r--rpm/harbour-binaryfun.yaml2
3 files changed, 6 insertions, 4 deletions
diff --git a/qml/pages/LeaderBoard.qml b/qml/pages/LeaderBoard.qml
index 62d4f89..1c1fb33 100644
--- a/qml/pages/LeaderBoard.qml
+++ b/qml/pages/LeaderBoard.qml
@@ -41,6 +41,7 @@ Page {
list.model = JSON.parse(xhr.responseText);
internet.visible = false;
} else {
+ list.model = []
internet.visible = true;
}
}
@@ -85,9 +86,10 @@ Page {
visible: false
}
- ListView {
+ SilicaListView {
id: list
clip: true
+ quickScroll: true
width: page.width
height: page.height - y
model: []
@@ -120,7 +122,7 @@ Page {
Label {
anchors.top: level.bottom
- text: (((modelData.end_time[1] - modelData.start_time[1]) / 1000) + 1.0) + qsTr("s - Help: ") + modelData.cheats
+ text: (((modelData.end_time[1] - modelData.start_time[1]) / 1000) + 1.0).toFixed(3) + qsTr("s - Help: ") + modelData.cheats
font.pixelSize: Theme.fontSizeExtraSmall
}
}
diff --git a/rpm/harbour-binaryfun.spec b/rpm/harbour-binaryfun.spec
index b18a7fa..d2c1e04 100644
--- a/rpm/harbour-binaryfun.spec
+++ b/rpm/harbour-binaryfun.spec
@@ -14,7 +14,7 @@ Name: harbour-binaryfun
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: An awesome binary game
Version: 1.1.1
-Release: 1
+Release: 2
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 5025b43..1b6b356 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: 1
+Release: 2
# 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