From 59a470e2ad6e0108c289977767f50761ecc03c3d Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 4 Dec 2013 22:00:50 +0200 Subject: add about page --- qml/pages/AboutPage.qml | 31 +++++++++++++++++++++++++++++++ qml/pages/SelectQuantityPage.qml | 11 ++++++----- 2 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 qml/pages/AboutPage.qml 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")) + } + } } } -- cgit v1.2.3