diff options
Diffstat (limited to 'src/imports/folderlistmodel')
-rw-r--r-- | src/imports/folderlistmodel/folderlistmodel.pro | 1 | ||||
-rw-r--r-- | src/imports/folderlistmodel/plugins.qmltypes | 47 | ||||
-rw-r--r-- | src/imports/folderlistmodel/qmldir | 1 |
3 files changed, 49 insertions, 0 deletions
diff --git a/src/imports/folderlistmodel/folderlistmodel.pro b/src/imports/folderlistmodel/folderlistmodel.pro index 400484b9b5..08a506134f 100644 --- a/src/imports/folderlistmodel/folderlistmodel.pro +++ b/src/imports/folderlistmodel/folderlistmodel.pro @@ -1,6 +1,7 @@ CXX_MODULE = qml TARGET = qmlfolderlistmodelplugin TARGETPATH = Qt/labs/folderlistmodel +IMPORT_VERSION = 2.0 QT += core-private qml qml-private v8-private diff --git a/src/imports/folderlistmodel/plugins.qmltypes b/src/imports/folderlistmodel/plugins.qmltypes new file mode 100644 index 0000000000..fabeb9e4b1 --- /dev/null +++ b/src/imports/folderlistmodel/plugins.qmltypes @@ -0,0 +1,47 @@ +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 Qt.labs.folderlistmodel 2.0'. + +Module { + Component { + name: "QQuickFolderListModel" + prototype: "QAbstractListModel" + exports: ["FolderListModel 1.0", "FolderListModel 2.0"] + Enum { + name: "SortField" + values: { + "Unsorted": 0, + "Name": 1, + "Time": 2, + "Size": 3, + "Type": 4 + } + } + Property { name: "folder"; type: "QUrl" } + Property { name: "rootFolder"; type: "QUrl" } + Property { name: "parentFolder"; type: "QUrl"; isReadonly: true } + Property { name: "nameFilters"; type: "QStringList" } + Property { name: "sortField"; type: "SortField" } + Property { name: "sortReversed"; type: "bool" } + Property { name: "showDirs"; type: "bool" } + Property { name: "showDirsFirst"; type: "bool" } + Property { name: "showDotAndDotDot"; type: "bool" } + Property { name: "showOnlyReadable"; type: "bool" } + Property { name: "count"; type: "int"; isReadonly: true } + Signal { name: "rowCountChanged" } + Method { + name: "isFolder" + type: "bool" + Parameter { name: "index"; type: "int" } + } + Method { + name: "get" + type: "QVariant" + Parameter { name: "idx"; type: "int" } + Parameter { name: "property"; type: "string" } + } + } +} diff --git a/src/imports/folderlistmodel/qmldir b/src/imports/folderlistmodel/qmldir index bbd91356cf..b5247d75f8 100644 --- a/src/imports/folderlistmodel/qmldir +++ b/src/imports/folderlistmodel/qmldir @@ -1,2 +1,3 @@ module Qt.labs.folderlistmodel plugin qmlfolderlistmodelplugin +typeinfo plugins.qmltypes |