diff options
author | Ilya Kotov <i.kotov@rusbitech.ru> | 2018-01-10 16:32:27 +0300 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-01-28 09:43:02 +0000 |
commit | e29047555be764d59c52801553e23767ed367cec (patch) | |
tree | d98647b57e29d28c7250b9d7ea581854a167b985 /src/imports/folderlistmodel/plugin.cpp | |
parent | e8f3f37bc2d05190c4f16c372a487901e0d2e03d (diff) |
FolderListModel: add status property
This allows to track directory loading
Task-number: QTBUG-48708
Change-Id: If79a325ef1bfc831d3bc2a205e3127a571fcb0c1
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/imports/folderlistmodel/plugin.cpp')
-rw-r--r-- | src/imports/folderlistmodel/plugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imports/folderlistmodel/plugin.cpp b/src/imports/folderlistmodel/plugin.cpp index 2b58a5677a..e90c8724e0 100644 --- a/src/imports/folderlistmodel/plugin.cpp +++ b/src/imports/folderlistmodel/plugin.cpp @@ -66,6 +66,12 @@ public: qmlRegisterType<QQuickFolderListModel>(uri,2,0,"FolderListModel"); qmlRegisterType<QQuickFolderListModel,1>(uri,2,1,"FolderListModel"); qmlRegisterType<QQuickFolderListModel,2>(uri,2,2,"FolderListModel"); + + // Auto-increment the import to stay in sync with ALL future QtQuick minor versions from 5.11 onward + qmlRegisterModule(uri, 2, QT_VERSION_MINOR); + + // revision in Qt 5.11: added status property + qmlRegisterType<QQuickFolderListModel,11>(uri, 2, 11, "FolderListModel"); } }; //![class decl] |