Commit 1683797c authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Replace K_PLUGIN_FACTORY_WITH_JSON with K_PLUGIN_CLASS_WITH_JSON

Having to give it a factory name that is used nowhere it just confusing
when you read the code
parent f4eb3fb1
......@@ -35,7 +35,7 @@
#include <KPluginFactory>
#include <KSharedConfig>
K_PLUGIN_FACTORY_WITH_JSON(KCMFormatsFactory, "formats.json", registerPlugin<KCMFormats>();)
K_PLUGIN_CLASS_WITH_JSON(KCMFormats, "formats.json")
KCMFormats::KCMFormats(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
......
......@@ -37,7 +37,7 @@
#include "xkb_helper.h"
#include "xkb_rules.h"
K_PLUGIN_FACTORY_WITH_JSON(KeyboardFactory, "keyboard.json", registerPlugin<KeyboardDaemon>();)
K_PLUGIN_CLASS_WITH_JSON(KeyboardDaemon, "keyboard.json")
KeyboardDaemon::KeyboardDaemon(QObject *parent, const QList<QVariant> &)
: KDEDModule(parent)
......
......@@ -20,10 +20,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KLocalizedString>
#include <KPluginFactory>
K_PLUGIN_FACTORY_WITH_JSON(KCMNightColorFactory, "kcm_nightcolor.json", registerPlugin<ColorCorrect::KCMNightColor>();)
namespace ColorCorrect
{
K_PLUGIN_CLASS_WITH_JSON(KCMNightColor, "kcm_nightcolor.json")
KCMNightColor::KCMNightColor(QObject *parent, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, args)
{
......
......@@ -40,7 +40,7 @@
Q_LOGGING_CATEGORY(kcm_users, "kcm_users")
K_PLUGIN_FACTORY_WITH_JSON(KCMUserFactory, "kcm_users.json", registerPlugin<KCMUser>();)
K_PLUGIN_CLASS_WITH_JSON(KCMUser, "kcm_users.json")
KCMUser::KCMUser(QObject *parent, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, args)
......
......@@ -30,7 +30,7 @@
#include <QTimer>
K_PLUGIN_FACTORY_WITH_JSON(DeviceAutomounterFactory, "device_automounter.json", registerPlugin<DeviceAutomounter>();)
K_PLUGIN_CLASS_WITH_JSON(DeviceAutomounter, "device_automounter.json")
DeviceAutomounter::DeviceAutomounter(QObject *parent, const QVariantList &args)
: KDEDModule(parent)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment