Changeset View
Changeset View
Standalone View
Standalone View
src/qml/plugin.cpp
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "plugin.h" | 20 | #include "plugin.h" | ||
21 | 21 | | |||
22 | #include <QQmlContext> | 22 | #include <QQmlContext> | ||
23 | #include <QDebug> | 23 | #include <QDebug> | ||
24 | 24 | | |||
25 | #include <KDescendantsProxyModel> | 25 | #include <KDescendantsProxyModel> | ||
26 | #include <KColumnHeadersModel> | ||||
26 | #include "kconcatenaterowsproxymodel_qml.h" | 27 | #include "kconcatenaterowsproxymodel_qml.h" | ||
27 | 28 | | |||
28 | void Plugin::initializeEngine(QQmlEngine *engine, const char *uri) | 29 | void Plugin::initializeEngine(QQmlEngine *engine, const char *uri) | ||
29 | { | 30 | { | ||
30 | } | 31 | } | ||
31 | 32 | | |||
32 | void Plugin::registerTypes(const char *uri) | 33 | void Plugin::registerTypes(const char *uri) | ||
33 | { | 34 | { | ||
34 | qmlRegisterType<QAbstractItemModel>(); | 35 | qmlRegisterType<QAbstractItemModel>(); | ||
35 | qmlRegisterExtendedType<KConcatenateRowsProxyModel,KConcatenateRowsProxyModelQml>(uri, 1, 0, "KConcatenateRowsProxyModel"); | 36 | qmlRegisterExtendedType<KConcatenateRowsProxyModel,KConcatenateRowsProxyModelQml>(uri, 1, 0, "KConcatenateRowsProxyModel"); | ||
36 | qmlRegisterType<KDescendantsProxyModel>(uri, 1, 0, "KDescendantsProxyModel"); | 37 | qmlRegisterType<KDescendantsProxyModel>(uri, 1, 0, "KDescendantsProxyModel"); | ||
38 | qmlRegisterType<KColumnHeadersModel>(uri, 1, 0, "KColumnHeadersModel"); | ||||
37 | } | 39 | } | ||
38 | | ||||
39 | |