diff --git a/src/qml/plugin.cpp b/src/qml/plugin.cpp --- a/src/qml/plugin.cpp +++ b/src/qml/plugin.cpp @@ -22,6 +22,7 @@ #include #include +#include #include "kconcatenaterowsproxymodel_qml.h" void Plugin::initializeEngine(QQmlEngine *engine, const char *uri) @@ -31,7 +32,8 @@ void Plugin::registerTypes(const char *uri) { qmlRegisterType(); - qmlRegisterExtendedType("org.kde.kitemmodels", 1,0, "KConcatenateRowsProxyModel"); + qmlRegisterExtendedType(uri, 1, 0, "KConcatenateRowsProxyModel"); + qmlRegisterType(uri, 1, 0, "KDescendantsProxyModel"); }