diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-09-07 15:21:00 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-12 13:24:31 +0200 |
commit | da4f45e403ad3eb11901dade45a128d6c89c1532 (patch) | |
tree | 9d44c6ce2d8fa9d31accdd242a3b74999a04a826 /src/imports/xmllistmodel | |
parent | 5958b88d0dca3058d4fd8d10260e647f7242ca2b (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/xmllistmodel')
-rw-r--r-- | src/imports/xmllistmodel/plugins.qmltypes | 55 | ||||
-rw-r--r-- | src/imports/xmllistmodel/qmldir | 1 | ||||
-rw-r--r-- | src/imports/xmllistmodel/xmllistmodel.pro | 1 |
3 files changed, 57 insertions, 0 deletions
diff --git a/src/imports/xmllistmodel/plugins.qmltypes b/src/imports/xmllistmodel/plugins.qmltypes new file mode 100644 index 0000000000..281a2adf05 --- /dev/null +++ b/src/imports/xmllistmodel/plugins.qmltypes @@ -0,0 +1,55 @@ +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.XmlListModel 2.0'. + +Module { + Component { + name: "QQuickXmlListModel" + defaultProperty: "roles" + prototype: "QAbstractListModel" + exports: ["XmlListModel 2.0"] + Enum { + name: "Status" + values: { + "Null": 0, + "Ready": 1, + "Loading": 2, + "Error": 3 + } + } + Property { name: "status"; type: "Status"; isReadonly: true } + Property { name: "progress"; type: "double"; isReadonly: true } + Property { name: "source"; type: "QUrl" } + Property { name: "xml"; type: "string" } + Property { name: "query"; type: "string" } + Property { name: "namespaceDeclarations"; type: "string" } + Property { name: "roles"; type: "QQuickXmlListModelRole"; isList: true; isReadonly: true } + Property { name: "count"; type: "int"; isReadonly: true } + Signal { + name: "statusChanged" + Parameter { type: "QQuickXmlListModel::Status" } + } + Signal { + name: "progressChanged" + Parameter { name: "progress"; type: "double" } + } + Method { name: "reload" } + Method { + name: "get" + type: "QQmlV8Handle" + Parameter { name: "index"; type: "int" } + } + Method { name: "errorString"; type: "string" } + } + Component { + name: "QQuickXmlListModelRole" + prototype: "QObject" + exports: ["XmlRole 2.0"] + Property { name: "name"; type: "string" } + Property { name: "query"; type: "string" } + Property { name: "isKey"; type: "bool" } + } +} diff --git a/src/imports/xmllistmodel/qmldir b/src/imports/xmllistmodel/qmldir index 945d15ac9f..390117111d 100644 --- a/src/imports/xmllistmodel/qmldir +++ b/src/imports/xmllistmodel/qmldir @@ -1,2 +1,3 @@ module QtQuick.XmlListModel plugin qmlxmllistmodelplugin +typeinfo plugins.qmltypes diff --git a/src/imports/xmllistmodel/xmllistmodel.pro b/src/imports/xmllistmodel/xmllistmodel.pro index 09d5666919..4984fd042d 100644 --- a/src/imports/xmllistmodel/xmllistmodel.pro +++ b/src/imports/xmllistmodel/xmllistmodel.pro @@ -1,6 +1,7 @@ CXX_MODULE = qml TARGET = qmlxmllistmodelplugin TARGETPATH = QtQuick/XmlListModel +IMPORT_VERSION = 2.0 QT += network qml xmlpatterns qml-private v8-private core-private |