diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -52,7 +52,7 @@ KDescendantsProxyModel KModelIndexProxyMapper KSelectionProxyModel - + KNumberModel REQUIRED_HEADERS KItemModels_HEADERS ) diff --git a/src/qml/plugin.cpp b/src/qml/plugin.cpp --- a/src/qml/plugin.cpp +++ b/src/qml/plugin.cpp @@ -23,6 +23,7 @@ #include #include +#include #include "kconcatenaterowsproxymodel_qml.h" void Plugin::initializeEngine(QQmlEngine *engine, const char *uri) @@ -34,6 +35,7 @@ qmlRegisterType(); qmlRegisterExtendedType(uri, 1, 0, "KConcatenateRowsProxyModel"); qmlRegisterType(uri, 1, 0, "KDescendantsProxyModel"); + qmlRegisterType(uri, 1, 0, "KNumberModel"); }