Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/analyzer/plugin/AnalyzerPlugin.cpp
Show All 25 Lines | |||||
26 | 26 | | |||
27 | 27 | | |||
28 | class AnalyzerPlugin : public QQmlExtensionPlugin | 28 | class AnalyzerPlugin : public QQmlExtensionPlugin | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) | 31 | Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) | ||
32 | 32 | | |||
33 | public: | 33 | public: | ||
34 | void registerTypes(const char* uri) Q_DECL_OVERRIDE | 34 | void registerTypes(const char* uri) override | ||
35 | { | 35 | { | ||
36 | Q_ASSERT(uri == QLatin1String("org.kde.amarok.analyzer")); | 36 | Q_ASSERT(uri == QLatin1String("org.kde.amarok.analyzer")); | ||
37 | 37 | | |||
38 | qmlRegisterUncreatableType<Analyzer::Base>(uri, 1, 0, "Analyzer", QStringLiteral("Analyzer is an uncreatable type. Use its derived classes instead")); | 38 | qmlRegisterUncreatableType<Analyzer::Base>(uri, 1, 0, "Analyzer", QStringLiteral("Analyzer is an uncreatable type. Use its derived classes instead")); | ||
39 | qmlRegisterType<BlockAnalyzer>(uri, 1, 0, "BlockAnalyzer"); | 39 | qmlRegisterType<BlockAnalyzer>(uri, 1, 0, "BlockAnalyzer"); | ||
40 | } | 40 | } | ||
41 | }; | 41 | }; | ||
42 | 42 | | |||
43 | #include <AnalyzerPlugin.moc> | 43 | #include <AnalyzerPlugin.moc> |