Remove broken metatype registration for types missing the "*" in the name
The old code calling qRegisterMetaType<Plasma::T *>("T"); was broken, as it registered for the name "T", not the pointer type "T*". Things still work though as that registration is also covered due to qmlRegisterInterface<Plasma::T>("T"); internally also calling qRegisterMetaType<Plasma::T *>("T*"); so that in the end "T*" was registered and mapped to the right type.
This commit is contained in:
parent
a851c78bfe
commit
8d3f4fccbd
@ -97,9 +97,7 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
|
||||
qmlRegisterType<ToolTip>(uri, 2, 0, "ToolTipArea");
|
||||
|
||||
qmlRegisterInterface<Plasma::Service>("Service");
|
||||
qRegisterMetaType<Plasma::Service *>("Service");
|
||||
qmlRegisterInterface<Plasma::ServiceJob>("ServiceJob");
|
||||
qRegisterMetaType<Plasma::ServiceJob *>("ServiceJob");
|
||||
qmlRegisterType<ServiceOperationStatus>(uri, 2, 0, "ServiceOperationStatus");
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
|
||||
@ -115,7 +113,6 @@ void CoreBindingsPlugin::registerTypes(const char *uri)
|
||||
qmlRegisterType<IconItem>(uri, 2, 0, "IconItem");
|
||||
|
||||
qmlRegisterInterface<Plasma::DataSource>("DataSource");
|
||||
qRegisterMetaType<Plasma::DataSource *>("DataSource");
|
||||
|
||||
qmlRegisterType<Plasma::WindowThumbnail>(uri, 2, 0, "WindowThumbnail");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user