aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/folderlistmodel
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-06-12 16:00:10 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-12 15:40:13 +0200
commite824fa97e4a9fbaa0c850274b448568953692240 (patch)
tree3b213cb2df07a7323ee4966eda62add549994b25 /src/imports/folderlistmodel
parent3c0973b75a8ea8ac3339ec00f7d4c09f0ae8983f (diff)
Add a version 2 import for FolderListModel
An interim measure to allow FolderListModel using examples to adapt. Longer term, version 1 will from be the QtQuick 1.0 module and version 2 will be from the QtQuick 2.0 module. This is implemented in change Ic378b0b9f715422a2b2f4c1037adf3a07ced7c0f. Task-number: QTBUG-25191 Change-Id: Ic378b0b9f715422a2b2f4c1037adf3a07ced7c0e Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/imports/folderlistmodel')
-rw-r--r--src/imports/folderlistmodel/plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/folderlistmodel/plugin.cpp b/src/imports/folderlistmodel/plugin.cpp
index bc904512a8..fd7db4e7f6 100644
--- a/src/imports/folderlistmodel/plugin.cpp
+++ b/src/imports/folderlistmodel/plugin.cpp
@@ -58,6 +58,7 @@ public:
Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.folderlistmodel"));
#ifndef QT_NO_DIRMODEL
qmlRegisterType<QQuickFolderListModel>(uri,1,0,"FolderListModel");
+ qmlRegisterType<QQuickFolderListModel>(uri,2,0,"FolderListModel");
#endif
}
};