summaryrefslogtreecommitdiff
path: root/app/qml/pages/AppConfigPage.qml
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-12-14 06:40:01 +0100
committerJavier <dev.git@javispedro.com>2014-12-14 06:40:01 +0100
commit24a27dcfdd6ce8f3e5a635404e6650081ebd63ca (patch)
treed00d782088c43213c4c05d75862c7273b9bcdb21 /app/qml/pages/AppConfigPage.qml
parent5a49b8f6f356a0dd7c7d012048b0d3da6774d2bc (diff)
convert appconfig into a dialog
Diffstat (limited to 'app/qml/pages/AppConfigPage.qml')
-rw-r--r--app/qml/pages/AppConfigPage.qml49
1 files changed, 0 insertions, 49 deletions
diff --git a/app/qml/pages/AppConfigPage.qml b/app/qml/pages/AppConfigPage.qml
deleted file mode 100644
index 00eb05c..0000000
--- a/app/qml/pages/AppConfigPage.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-import QtQuick 2.0
-import QtQml 2.1
-import QtWebKit 3.0
-import Sailfish.Silica 1.0
-
-Page {
- id: appConfigPage
-
- property alias url: webview.url
- property string name
-
- SilicaWebView {
- id: webview
- visible: url != ""
- anchors.fill: parent
-
- header: PageHeader {
- title: "Configuring " + name
- }
-
- onNavigationRequested: {
- console.log("appconfig navigation requested to " + request.url);
- var url = request.url.toString();
- if (/^pebblejs:\/\/close/.exec(url)) {
- var data = decodeURIComponent(url.substring(17));
- console.log("appconfig requesting close; data: " + data);
- pebbled.setAppConfiguration(uuid, data);
- pageStack.pop();
- request.action = WebView.IgnoreRequest;
- } else {
- request.action = WebView.AcceptRequest;
- }
- }
- }
-
- Text {
- anchors.centerIn: parent
- visible: url == ""
- text: qsTr("No configuration settings available")
- width: parent.width - 2*Theme.paddingLarge
- horizontalAlignment: Text.AlignHCenter
- wrapMode: Text.Wrap
- font {
- pixelSize: Theme.fontSizeLarge
- family: Theme.fontFamilyHeading
- }
- color: Theme.highlightColor
- }
-}