aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmlmodelsmodule.cpp
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-02-06 15:58:33 +0100
committerCaroline Chao <caroline.chao@theqtcompany.com>2015-02-12 11:11:11 +0000
commit4ca9be54ad02ad1012bf5acef27783d28f544191 (patch)
tree1168063c7181874e671c89153131918ea40c5b94 /src/qml/types/qqmlmodelsmodule.cpp
parent20000d92242b39fb34390f58759e2b05a3df33d6 (diff)
QML Models: Register ItemSelectionModel
Change-Id: I7f5c9e05c2e779d33e1bc92d698c75d97d397339 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
Diffstat (limited to 'src/qml/types/qqmlmodelsmodule.cpp')
-rw-r--r--src/qml/types/qqmlmodelsmodule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/types/qqmlmodelsmodule.cpp b/src/qml/types/qqmlmodelsmodule.cpp
index 69a799675e..3e53efd8b9 100644
--- a/src/qml/types/qqmlmodelsmodule.cpp
+++ b/src/qml/types/qqmlmodelsmodule.cpp
@@ -32,6 +32,7 @@
****************************************************************************/
#include "qqmlmodelsmodule_p.h"
+#include <QtCore/qitemselectionmodel.h>
#include <private/qqmllistmodel_p.h>
#include <private/qqmldelegatemodel_p.h>
#include <private/qqmlobjectmodel_p.h>
@@ -47,6 +48,8 @@ void QQmlModelsModule::defineModule()
qmlRegisterType<QQmlDelegateModel>(uri, 2, 1, "DelegateModel");
qmlRegisterType<QQmlDelegateModelGroup>(uri, 2, 1, "DelegateModelGroup");
qmlRegisterType<QQmlObjectModel>(uri, 2, 1, "ObjectModel");
+
+ qmlRegisterType<QItemSelectionModel>(uri, 2, 2, "ItemSelectionModel");
}
QT_END_NAMESPACE