summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@theqtcompany.com>2014-12-08 17:30:11 +0100
committerChristian Stromme <christian.stromme@theqtcompany.com>2014-12-09 11:03:46 +0100
commit49836462132a8d3af7e10b168577d5f232264fd9 (patch)
tree1bd769c4cb0caf0e073a2f895a2775cffc361279
parent829abf436f7347aed320a1bb0e185986d8ed24c0 (diff)
Add plugins.qmltypes for QtWebView import
This should fix warning from Qt Creator and auto completion. Task-number: QTBUG-42665 Change-Id: I16c6856e699ebe522535e534eb5a5c015db69409 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-rw-r--r--src/imports/plugins.qmltypes24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/imports/plugins.qmltypes b/src/imports/plugins.qmltypes
new file mode 100644
index 0000000..8acf6fd
--- /dev/null
+++ b/src/imports/plugins.qmltypes
@@ -0,0 +1,24 @@
+import QtQuick.tooling 1.1
+
+// This file describes the plugin-supplied types contained in the library.
+// It is used for QML tooling purposes only.
+
+Module {
+ Component {
+ name: "QWebView"
+ defaultProperty: "data"
+ prototype: "QQuickItem"
+ exports: ["QtWebView/WebView 1.0"]
+ exportMetaObjectRevisions: [0]
+ Property { name: "url"; type: "QUrl" }
+ Property { name: "loading"; type: "bool"; isReadonly: true }
+ Property { name: "loadProgress"; type: "int"; isReadonly: true }
+ Property { name: "title"; type: "string"; isReadonly: true }
+ Property { name: "canGoBack"; type: "bool"; isReadonly: true }
+ Property { name: "canGoForward"; type: "bool"; isReadonly: true }
+ Method { name: "goBack" }
+ Method { name: "goForward" }
+ Method { name: "reload" }
+ Method { name: "stop" }
+ }
+}