aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/localstorage
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-09-07 15:21:00 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-12 13:24:31 +0200
commitda4f45e403ad3eb11901dade45a128d6c89c1532 (patch)
tree9d44c6ce2d8fa9d31accdd242a3b74999a04a826 /src/imports/localstorage
parent5958b88d0dca3058d4fd8d10260e647f7242ca2b (diff)
Add .qmltypes files
.qmltypes files are used by e.g. Qt Creator to provide code completion etc for QML types defined in plugins. The added files where generated with qmlplugindump, e.g. qmlplugindump QtQuick.Particles 2.0 > plugins.qmltypes (ideally make qmltypes would do the same, but it's not working as expected right now). The exception is the QtQuick plugin: Here the file is generated with qmlplugindump -builtins > plugins.qmltypes and contains also the types registered in the qml library itself. Change-Id: I1a6b6641cb5ec3ecffe08e8926d8c1bc082ae6de Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Diffstat (limited to 'src/imports/localstorage')
-rw-r--r--src/imports/localstorage/localstorage.pro1
-rw-r--r--src/imports/localstorage/plugins.qmltypes18
-rw-r--r--src/imports/localstorage/qmldir1
3 files changed, 20 insertions, 0 deletions
diff --git a/src/imports/localstorage/localstorage.pro b/src/imports/localstorage/localstorage.pro
index 93fa9c21dd..bce5362646 100644
--- a/src/imports/localstorage/localstorage.pro
+++ b/src/imports/localstorage/localstorage.pro
@@ -1,6 +1,7 @@
CXX_MODULE = qml
TARGET = qmllocalstorageplugin
TARGETPATH = QtQuick/LocalStorage
+IMPORT_VERSION = 2.0
QT += sql qml qml-private v8-private core-private
diff --git a/src/imports/localstorage/plugins.qmltypes b/src/imports/localstorage/plugins.qmltypes
new file mode 100644
index 0000000000..75b83c762d
--- /dev/null
+++ b/src/imports/localstorage/plugins.qmltypes
@@ -0,0 +1,18 @@
+import QtQuick.tooling 1.1
+
+// This file describes the plugin-supplied types contained in the library.
+// It is used for QML tooling purposes only.
+//
+// This file was auto-generated with the command 'qmlplugindump QtQuick.LocalStorage 2.0'.
+
+Module {
+ Component {
+ name: "QQuickLocalStorage"
+ prototype: "QObject"
+ exports: ["LocalStorage 2.0"]
+ Method {
+ name: "openDatabaseSync"
+ Parameter { name: "args"; type: "QQmlV8Function"; isPointer: true }
+ }
+ }
+}
diff --git a/src/imports/localstorage/qmldir b/src/imports/localstorage/qmldir
index 8bb2c3bc68..a6c43a4fe5 100644
--- a/src/imports/localstorage/qmldir
+++ b/src/imports/localstorage/qmldir
@@ -1,2 +1,3 @@
module QtQuick.LocalStorage
plugin qmllocalstorageplugin
+typeinfo plugins.qmltypes