diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2013-12-04 22:00:50 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2013-12-04 22:00:50 +0200 |
| commit | 59a470e2ad6e0108c289977767f50761ecc03c3d (patch) | |
| tree | 52fb31eee14c7844c34c900cc5ea5d8471c101dd | |
| parent | ae134f41ada5c1bd3455d3d9cd76cb01b6471a01 (diff) | |
| download | unitmaster-59a470e2ad6e0108c289977767f50761ecc03c3d.tar.gz unitmaster-59a470e2ad6e0108c289977767f50761ecc03c3d.zip | |
add about page
| -rw-r--r-- | qml/pages/AboutPage.qml | 31 | ||||
| -rw-r--r-- | qml/pages/SelectQuantityPage.qml | 11 |
2 files changed, 37 insertions, 5 deletions
diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml new file mode 100644 index 0000000..0810846 --- /dev/null +++ b/qml/pages/AboutPage.qml @@ -0,0 +1,31 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 +import "helpers.js" as H + +Page { + id: page + + SilicaFlickable { + anchors.fill: parent + + Column { + width: parent.width + spacing: Theme.paddingLarge + + PageHeader { + title: "About" + } + + TextArea { + readOnly: true + width: parent.width + horizontalAlignment: TextEdit.AlignHCenter + text: "Unit Master\nCopyright 2013 Oskari Timperi\n\nThe +application icon is derived from the Meanicons Icon Set\n(http://www.meanicons.com/)." + } + } + + } +} + + diff --git a/qml/pages/SelectQuantityPage.qml b/qml/pages/SelectQuantityPage.qml index b39f08a..4e1456d 100644 --- a/qml/pages/SelectQuantityPage.qml +++ b/qml/pages/SelectQuantityPage.qml @@ -34,11 +34,12 @@ Page { } VerticalScrollDecorator {} -// PullDownMenu { -// MenuItem { -// text: "About" -// } -// } + PullDownMenu { + MenuItem { + text: "About" + onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml")) + } + } } } |
