diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-17 15:59:39 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-17 15:59:39 +0200 |
| commit | 8bb7a35eedd431f707ca6fb9134c35bace8e4b24 (patch) | |
| tree | b9ee5787397604c198b5630197e995219203518d /app/qml/pages | |
| parent | 453e9ea4ea8d56ad84c2329cb95f1dfed279be95 (diff) | |
Disclaimer page
Diffstat (limited to 'app/qml/pages')
| -rw-r--r-- | app/qml/pages/AboutPage.qml | 2 | ||||
| -rw-r--r-- | app/qml/pages/Disclaimer.qml | 78 | ||||
| -rw-r--r-- | app/qml/pages/WatchInfo.qml | 2 |
3 files changed, 80 insertions, 2 deletions
diff --git a/app/qml/pages/AboutPage.qml b/app/qml/pages/AboutPage.qml index c121608..86a05c5 100644 --- a/app/qml/pages/AboutPage.qml +++ b/app/qml/pages/AboutPage.qml @@ -80,7 +80,7 @@ Page { right: parent.right margins: Theme.paddingLarge * 2 } - onClicked: Qt.openUrlExternally("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MAGN86VCARBSA") + onClicked: Qt.openUrlExternally(donate.url) } Label { diff --git a/app/qml/pages/Disclaimer.qml b/app/qml/pages/Disclaimer.qml new file mode 100644 index 0000000..baf5cd0 --- /dev/null +++ b/app/qml/pages/Disclaimer.qml @@ -0,0 +1,78 @@ +import QtQuick 2.0 +import QtQml 2.1 +import Sailfish.Silica 1.0 + +Page { + id: page + + SilicaFlickable { + id: flickable + anchors.fill: parent + contentHeight: column.height + + VerticalScrollDecorator { flickable: flickable } + + Column { + id: column + width: page.width + spacing: Theme.paddingMedium + + PageHeader { + title: qsTr("Feature unavailable") + } + Label { + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingLarge + } + font.pixelSize: Theme.fontSizeSmall + wrapMode: Text.Wrap + text: qsTr("This feature is available for supporters only.") + } + Button { + text: qsTr("PayPal Donate") + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingLarge * 2 + } + onClicked: Qt.openUrlExternally(donate.url) + } + + Label { + text: qsTr("Supporter?") + font.family: Theme.fontFamilyHeading + color: Theme.highlightColor + anchors.right: parent.right + anchors.rightMargin: Theme.paddingMedium + } + Button { + text: qsTr("Send me my code!") + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingLarge * 2 + } + onClicked: Qt.openUrlExternally("mailto:support@xiaoka.com?subject=pebbled code request - "+ + donate.id + "&body=My paypal id is: ") + } + Label { + text: qsTr("Activation code") + font.family: Theme.fontFamilyHeading + color: Theme.highlightColor + anchors.left: parent.left + anchors.leftMargin: Theme.paddingMedium + } + TextField { + id: code + anchors { + left: parent.left + right: parent.right + margins: Theme.paddingMedium + } + focus: true + } + } + } +} diff --git a/app/qml/pages/WatchInfo.qml b/app/qml/pages/WatchInfo.qml index 69a916c..af4a740 100644 --- a/app/qml/pages/WatchInfo.qml +++ b/app/qml/pages/WatchInfo.qml @@ -96,7 +96,7 @@ Page { right: parent.right margins: Theme.paddingLarge * 2 } - onClicked: pageStack.push(Qt.resolvedUrl("FirmwareUpgrade.qml")) + onClicked: pageStack.push(Qt.resolvedUrl(donate.active ? "FirmwareUpgrade.qml" : "Disclaimer.qml")) } } } |
