diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2014-07-20 23:34:52 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2014-07-20 23:34:52 +0200 |
| commit | 4f708105d87b1b2dcb516b05dd2ab1c7da508a8a (patch) | |
| tree | e35b62a9211146a1f7d28fd24cb6f72e44037796 /app/qml | |
| parent | e8ad1c9c993a98cdeea92dfcec29052654ec807d (diff) | |
Implemented About Page
Diffstat (limited to 'app/qml')
| -rw-r--r-- | app/qml/images/btn_donate.png | bin | 0 -> 155389 bytes | |||
| -rw-r--r-- | app/qml/pages/AboutPage.qml | 68 | ||||
| -rw-r--r-- | app/qml/pages/ManagerPage.qml | 8 |
3 files changed, 75 insertions, 1 deletions
diff --git a/app/qml/images/btn_donate.png b/app/qml/images/btn_donate.png Binary files differnew file mode 100644 index 0000000..3777e64 --- /dev/null +++ b/app/qml/images/btn_donate.png diff --git a/app/qml/pages/AboutPage.qml b/app/qml/pages/AboutPage.qml new file mode 100644 index 0000000..6d8d18e --- /dev/null +++ b/app/qml/pages/AboutPage.qml @@ -0,0 +1,68 @@ +import QtQuick 2.0 +import QtQml 2.1 +import Sailfish.Silica 1.0 + +Page { + id: page + + SilicaFlickable { + anchors.fill: parent + + contentHeight: column.height + + Column { + id: column + width: page.width + spacing: Theme.paddingMedium + + PageHeader { + title: "pebbled" + } + Label { + text: qsTr("Version ") + APP_VERSION + horizontalAlignment: Text.AlignRight + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingLarge + } + } + Label { + color: Theme.highlightColor + width: parent.width + horizontalAlignment: Text.AlignHCenter + text: "© 2014 Tomasz Sterna / Xiaoka.com\nAll Rights Reserved." + } + Label { + wrapMode: Text.Wrap + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingSmall + } + font.pixelSize: Theme.fontSizeTiny + horizontalAlignment: Text.AlignJustify + text: qsTr( +"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND "+ +"ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED "+ +"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE "+ +"DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR "+ +"ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES "+ +"(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; "+ +"LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND "+ +"ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT "+ +"(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS "+ +"SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.") + } + IconButton { + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingMedium + } + icon.source: "../images/btn_donate.png" + onClicked: Qt.openUrlExternally("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MAGN86VCARBSA") + } + } + } +} diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml index a6b6699..6f94e4b 100644 --- a/app/qml/pages/ManagerPage.qml +++ b/app/qml/pages/ManagerPage.qml @@ -45,9 +45,15 @@ Page { SilicaFlickable { anchors.fill: parent - contentHeight: column.height + PullDownMenu { + MenuItem { + text: qsTr("About") + onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml")) + } + } + Column { id: column |
