Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/albums/plugin/AlbumsPlugin.cpp
Show All 26 Lines | |||||
27 | 27 | | |||
28 | 28 | | |||
29 | class AlbumsPlugin : public QQmlExtensionPlugin | 29 | class AlbumsPlugin : public QQmlExtensionPlugin | ||
30 | { | 30 | { | ||
31 | Q_OBJECT | 31 | Q_OBJECT | ||
32 | Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) | 32 | Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) | ||
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | void registerTypes(const char* uri) Q_DECL_OVERRIDE | 35 | void registerTypes(const char* uri) override | ||
36 | { | 36 | { | ||
37 | Q_ASSERT(uri == QLatin1String("org.kde.amarok.albums")); | 37 | Q_ASSERT(uri == QLatin1String("org.kde.amarok.albums")); | ||
38 | 38 | | |||
39 | // qmlRegisterUncreatableType<AlbumsProxyModel>(); | 39 | // qmlRegisterUncreatableType<AlbumsProxyModel>(); | ||
40 | qmlRegisterSingletonType<AlbumsEngine>(uri, 1, 0, "AlbumsEngine", albums_engine_provider); | 40 | qmlRegisterSingletonType<AlbumsEngine>(uri, 1, 0, "AlbumsEngine", albums_engine_provider); | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | static QObject *albums_engine_provider(QQmlEngine *engine, QJSEngine *scriptEngine) | 43 | static QObject *albums_engine_provider(QQmlEngine *engine, QJSEngine *scriptEngine) | ||
Show All 9 Lines |