mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-10 04:15:51 +00:00
more correct fix for #57
This commit is contained in:
@ -22,18 +22,9 @@
|
||||
#include "dpadds.h"
|
||||
|
||||
|
||||
static QObject *dpadds_singletontype_provider(QQmlEngine *engine, QJSEngine *scriptEngine)
|
||||
{
|
||||
Q_UNUSED(engine);
|
||||
Q_UNUSED(scriptEngine);
|
||||
|
||||
return new DPAdds();
|
||||
}
|
||||
|
||||
|
||||
void DPPlugin::registerTypes(const char *uri)
|
||||
{
|
||||
Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.desktoppanel"));
|
||||
|
||||
qmlRegisterSingletonType<DPAdds>(uri, 1, 0, "DPAdds", dpadds_singletontype_provider);
|
||||
qmlRegisterType<DPAdds>(uri, 1, 0, "DPAdds");
|
||||
}
|
||||
|
Reference in New Issue
Block a user