diff options
author | Jonatan Pålsson <jonatan.palsson@pelagicore.com> | 2014-01-27 11:00:00 +0100 |
---|---|---|
committer | Jonatan Pålsson <jonatan.palsson@pelagicore.com> | 2014-01-27 17:12:15 +0100 |
commit | 24e29fd70958757aa38266eebdb4b23447953115 (patch) | |
tree | 6f40ac012df98450b448ffc77a87c3276d3e9cbf | |
parent | 385b6c74d6a791f275fc707f5588eb8b96c6cc3b (diff) | |
download | browser-poc-24e29fd70958757aa38266eebdb4b23447953115.tar.gz |
Removed unused browser QML file
-rw-r--r-- | browser/qml/browser/main.qml | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/browser/qml/browser/main.qml b/browser/qml/browser/main.qml deleted file mode 100644 index aefaa73..0000000 --- a/browser/qml/browser/main.qml +++ /dev/null @@ -1,68 +0,0 @@ -import QtQuick 1.1 -import QtWebKit 1.0 - -Flickable { - id: root - - property alias url: webcontent.url - property alias progress: webcontent.progress - property alias title: webcontent.title - property alias contentheight: webcontent.height - property alias contentwidth: webcontent.width - - function goBack() { webcontent.back.trigger() } - function goForward() { webcontent.forward.trigger() } - function pagereload() { webcontent.reload.trigger() } - function pagestop() { webcontent.stop.trigger() } - - signal pageLoadStarted() - signal pageLoadFinished(bool success) - - signal onInputText(string a_strInputName, string a_strDefaultInputValue, int a_i32InputValueType, int a_s32MaxLength, int a_s32Max, int a_s32Min, int a_s32Step) - - property string input: "" - - function inputText() { - webcontent.evaluateJavaScript("var inputs = document.getElementsByTagName('INPUT'); var index;for(index=0; index < inputs.length; index++){ if(inputs[index].name == '" + privateMem.inputfieldname + "') { var element = inputs[index]; element.value='" + root.input + "' }}"); - } - - width: 1024 - height: 688 - - contentWidth: Math.max(root.width,webcontent.width) - contentHeight: Math.max(root.height,webcontent.height) - - Item { - id: privateMem - property string inputfieldname: "" - } - - WebView { - id: webcontent - - onLoadStarted: root.pageLoadStarted() - onLoadFinished: { - root.pageLoadFinished(true) - webcontent.evaluateJavaScript("var inputs = document.getElementsByTagName('INPUT');var index;for(index=0; index < inputs.length; index++){inputs[index].onfocus = function() { window.webpage.getFocus(this.name, this.value, this.type, this.maxlength, this.max, this.min, this.step) }}") - } - onLoadFailed: root.pageLoadFinished(false) - - preferredWidth: root.width - preferredHeight: root.height - focus: true - - url: "http://www.bmw.com" - -// settings.javaEnabled: true - settings.developerExtrasEnabled: true - javaScriptWindowObjects: QtObject { - WebView.windowObjectName: "webpage" - - function getFocus(name, value, type, maxlength, max, min, step) { -// console.log("Input has focus " + name + " " + value + " " + type + " " + maxlength + " " + max + " " + min + " " + step); - privateMem.inputfieldname = name; - onInputText(name, value, type, maxlength, max, min, step); - } - } - } -} |