dataengine examples: Use K_PLUGIN_CLASS_WITH_JSON directly

Task: https://phabricator.kde.org/T14542
This commit is contained in:
Alexander Lohnau 2021-06-18 22:06:54 +02:00
parent 094f82f9b4
commit 3063e43abd
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ bool DataContainersEngine::updateSourceEvent(const QString &source)
}
// export the plugin; use the plugin name and the class name
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.customDataContainers, DataContainersEngine, "plasma-dataengine-example-customDataContainers.json")
K_PLUGIN_CLASS_WITH_JSON(DataContainersEngine, "plasma-dataengine-example-customDataContainers.json")
// include the moc file so the build system makes it for us
#include "customDataContainersEngine.moc"

View File

@ -54,7 +54,7 @@ void SimpleEngine::init()
}
// export the plugin; use the plugin name and the class name
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.simpleEngine, SimpleEngine, "plasma-dataengine-example-simpleEngine.json")
K_PLUGIN_CLASS_WITH_JSON(SimpleEngine, "plasma-dataengine-example-simpleEngine.json")
// include the moc file so the build system makes it for us
#include "simpleEngine.moc"

View File

@ -90,7 +90,7 @@ bool SourcesOnRequestEngine::updateSourceEvent(const QString &source)
}
// export the plugin; use the plugin name and the class name
K_EXPORT_PLASMA_DATAENGINE_WITH_JSON(org.kde.examples.sourcesOnRequest, SourcesOnRequestEngine, "plasma-dataengine-example-sourcesOnRequest.json")
K_PLUGIN_CLASS_WITH_JSON(SourcesOnRequestEngine, "plasma-dataengine-example-sourcesOnRequest.json")
// include the moc file so the build system makes it for us
#include "sourcesOnRequest.moc"