Compare commits

..

5 commits
qa ... master

Author SHA1 Message Date
Mikko Ahlroth
ab80b8c4e8 Bump version to 1.2.1 for harbour 2014-10-25 22:32:07 +03:00
Mikko Ahlroth
3477b944c7 Merged in coderus/sailtime (pull request #1)
Proper names for dialog buttons
2014-09-28 21:21:10 +03:00
CODeRUS
70cf1197e5 Make proper dialog buttons texts 2014-09-29 00:19:55 +06:00
Mikko Ahlroth
1ade69b8e1 Add simple readme for BitBucket 2014-07-14 22:04:02 +03:00
Mikko Ahlroth
af093bbbfd Fix wrong percentage in swap and memory usage, add about section on loads
Fixes #7
2014-07-14 21:58:11 +03:00
6 changed files with 57 additions and 10 deletions

16
README.md Normal file
View file

@ -0,0 +1,16 @@
# SailTime
SailTime is a simple uptime program for Sailfish OS, written in C++, QML and
Javascript. It shows the user the uptime of the device, along with the system
load averages (1, 5 and 15 minutes) and some additional miscellaneous
information. It also has an automatic update timer with a configurable interval
and can save the system's all-time uptime record.
SailTime is available in the Jolla app store.
## Licence
SailTime is open source, licensed under the MIT Expat licence. See the LICENCE
file for more details.
© Mikko Ahlroth 20132014

View file

@ -29,7 +29,7 @@ Page {
Label {
anchors.horizontalCenter: parent.horizontalCenter
text: "SailTime 1.1.2"
text: "SailTime 1.2.1"
color: Theme.highlightColor
font.pixelSize: Theme.fontSizeLarge
}
@ -62,6 +62,36 @@ Page {
anchors.horizontalCenter: parent.horizontalCenter
onClicked: Qt.openUrlExternally("https://bitbucket.org/Nicd/sailtime");
}
Separator {
x: Theme.paddingLarge
width: parent.width - Theme.paddingLarge * 2
horizontalAlignment: Qt.AlignCenter
color: Theme.highlightColor
}
PageHeader {
title: "What are load averages?"
}
Label {
anchors.horizontalCenter: parent.horizontalCenter
text: "In UNIX computing, the system load is a measure of the amount of \
computational work that a computer system performs. The load average represents the average \
system load over a period of time. It conventionally appears in the form of three numbers \
which represent the system load during the last one-, five-, and fifteen-minute periods."
color: Theme.primaryColor
font.pixelSize: Theme.fontSizeMedium
wrapMode: Text.WordWrap
width: parent.width - Theme.paddingLarge * 2
}
Button {
text: "Open Wikipedia description"
anchors.horizontalCenter: parent.horizontalCenter
onClicked: Qt.openUrlExternally("http://en.wikipedia.org/wiki/Load_average");
}
}
}
}

View file

@ -52,7 +52,7 @@ Page {
memlegend.text = usedram[0].toFixed(2) + " " + usedram[1] + "B/"
+ totalram[0].toFixed(2) + " " + totalram[1] + "B ("
+ (usedram[0] / totalram[0] * 100).toFixed(2) + " %)";
+ (meminuse / sysinfo.totalram * 100).toFixed(2) + " %)";
// Swap bar
@ -67,7 +67,7 @@ Page {
swaplegend.text = usedswap_scale[0].toFixed(2) + " " + usedswap_scale[1] + "B/"
+ totalswap_scale[0].toFixed(2) + " " + totalswap_scale[1] + "B ("
+ (usedswap_scale[0] / totalswap_scale[0] * 100).toFixed(2) + " %)";
+ (swapinuse / sysinfo.totalswap * 100).toFixed(2) + " %)";
// Processes amount
@ -112,7 +112,7 @@ Page {
// PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
PullDownMenu {
MenuItem {
text: "About..."
text: "About SailTime"
onClicked: pageStack.push(aboutpage);
}

View file

@ -75,8 +75,9 @@ Dialog {
spacing: Theme.paddingLarge
DialogHeader {
title: "Save"
acceptText: "Settings"
title: "Settings"
acceptText: "Save"
cancelText: "Cancel"
}
TextSwitch {

View file

@ -13,11 +13,11 @@ Name: harbour-sailtime
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: SailTime
Version: 1.1.2
Version: 1.2.1
Release: 1
Group: Qt/Qt
License: MIT Expat licence
URL: http://example.org/
URL: https://bitbucket.org/Nicd/sailtime/
Source0: %{name}-%{version}.tar.bz2
Source100: harbour-sailtime.yaml
Requires: sailfishsilica-qt5 >= 0.10.9

View file

@ -1,9 +1,9 @@
Name: harbour-sailtime
Summary: SailTime
Version: 1.1.2
Version: 1.2.1
Release: 1
Group: Qt/Qt
URL: http://example.org/
URL: https://bitbucket.org/Nicd/sailtime/
License: "MIT Expat licence"
Sources:
- '%{name}-%{version}.tar.bz2'