Add an about page and update licence comments for new year

This commit is contained in:
Mikko Ahlroth 2014-01-27 16:24:16 +02:00
parent 59cf62ad06
commit 9614a11e18
12 changed files with 92 additions and 12 deletions

View file

@ -22,5 +22,6 @@ OTHER_FILES += qml/harbour-sailtime.qml \
qml/js/storage.js \
rpm/harbour-sailtime.spec \
rpm/harbour-sailtime.yaml \
harbour-sailtime.desktop
harbour-sailtime.desktop \
qml/pages/AboutPage.qml

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/
@ -53,6 +53,7 @@ ApplicationWindow
interval: secondpage.refreshInterval * 60 * 1000
onTriggered: {
//console.log("Timer fired!")
//console.log("Time is now " + new Date());
updateDisplay()
}
repeat: true

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/

69
qml/pages/AboutPage.qml Normal file
View file

@ -0,0 +1,69 @@
/*
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
id: aboutPage
SilicaFlickable {
anchors.fill: parent
// Tell SilicaFlickable the height of its content.
contentHeight: column.height
// Place our content in a Column. The PageHeader is always placed at the top
// of the page, followed by our content.
Column {
id: column
width: page.width
spacing: Theme.paddingLarge
PageHeader {
title: "About"
}
Label {
anchors.horizontalCenter: parent.horizontalCenter
text: "SailTime 1.0.2"
color: Theme.highlightColor
font.pixelSize: Theme.fontSizeLarge
}
Label {
anchors.horizontalCenter: parent.horizontalCenter
text: "© Mikko Ahlroth 20132014"
color: Theme.primaryColor
font.pixelSize: Theme.fontSizeMedium
}
Separator {
x: Theme.paddingLarge
width: parent.width - Theme.paddingLarge * 2
horizontalAlignment: Qt.AlignCenter
color: Theme.highlightColor
}
Label {
anchors.horizontalCenter: parent.horizontalCenter
text: "SailTime is open source software. You can find the licence details and source code on BitBucket."
color: Theme.primaryColor
font.pixelSize: Theme.fontSizeMedium
wrapMode: Text.WordWrap
width: parent.width - Theme.paddingLarge * 2
}
Button {
text: "Open project website in browser"
anchors.horizontalCenter: parent.horizontalCenter
onClicked: Qt.openUrlExternally("https://bitbucket.org/Nicd/sailtime");
}
}
}
}

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/
@ -8,6 +8,10 @@ import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
AboutPage {
id: aboutpage
}
id: page
property alias page : page
@ -30,9 +34,14 @@ Page {
// PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
PullDownMenu {
MenuItem {
text: "About..."
onClicked: pageStack.push(aboutpage);
}
MenuItem {
text: "Settings"
onClicked: pageStack.push(secondpage)
onClicked: pageStack.push(secondpage);
}
MenuItem {

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/

View file

@ -13,7 +13,7 @@ Name: harbour-sailtime
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: SailTime
Version: 1.0.1
Version: 1.0.2
Release: 1
Group: Qt/Qt
License: MIT Expat licence

View file

@ -1,6 +1,6 @@
Name: harbour-sailtime
Summary: SailTime
Version: 1.0.1
Version: 1.0.2
Release: 1
Group: Qt/Qt
URL: http://example.org/

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/

View file

@ -1,5 +1,5 @@
/*
* © Mikko Ahlroth 2013
* © Mikko Ahlroth 20132014
* SailTime is open source software. For licensing information, please check
* the LICENCE file.
*/