Do not make virtual methods of KCModule Q_SLOT
We do not need those methods to be marked as slots and the KCMUtils classes like KPluginWidget also don't need it. Meaning it just results in more moc code being generated.
This commit is contained in:
parent
9fdc2901b2
commit
c61fad5561
6 changed files with 2 additions and 9 deletions
|
@ -21,10 +21,10 @@ public:
|
||||||
ClipboardConfig(QObject *parent, const QVariantList &);
|
ClipboardConfig(QObject *parent, const QVariantList &);
|
||||||
~ClipboardConfig() override;
|
~ClipboardConfig() override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void save() override;
|
void save() override;
|
||||||
void load() override;
|
void load() override;
|
||||||
void defaults() override;
|
void defaults() override;
|
||||||
|
public Q_SLOTS:
|
||||||
void autoShareChanged();
|
void autoShareChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -21,15 +21,12 @@ public:
|
||||||
FindThisDeviceConfig(QObject *parent, const QVariantList &);
|
FindThisDeviceConfig(QObject *parent, const QVariantList &);
|
||||||
~FindThisDeviceConfig() override;
|
~FindThisDeviceConfig() override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void save() override;
|
void save() override;
|
||||||
void load() override;
|
void load() override;
|
||||||
void defaults() override;
|
void defaults() override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
|
||||||
void playSound(const QUrl &soundUrl);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void playSound(const QUrl &soundUrl);
|
||||||
Ui::FindThisDeviceConfigUi *m_ui;
|
Ui::FindThisDeviceConfigUi *m_ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ public:
|
||||||
PauseMusicConfig(QObject *parent, const QVariantList &);
|
PauseMusicConfig(QObject *parent, const QVariantList &);
|
||||||
~PauseMusicConfig() override;
|
~PauseMusicConfig() override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void save() override;
|
void save() override;
|
||||||
void load() override;
|
void load() override;
|
||||||
void defaults() override;
|
void defaults() override;
|
||||||
|
|
|
@ -18,7 +18,6 @@ class RunCommandConfig : public KdeConnectPluginKcm
|
||||||
public:
|
public:
|
||||||
RunCommandConfig(QObject *parent, const QVariantList &);
|
RunCommandConfig(QObject *parent, const QVariantList &);
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void save() override;
|
void save() override;
|
||||||
void load() override;
|
void load() override;
|
||||||
void defaults() override;
|
void defaults() override;
|
||||||
|
|
|
@ -23,7 +23,6 @@ public:
|
||||||
SendNotificationsConfig(QObject *parent, const QVariantList &);
|
SendNotificationsConfig(QObject *parent, const QVariantList &);
|
||||||
~SendNotificationsConfig() override;
|
~SendNotificationsConfig() override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void save() override;
|
void save() override;
|
||||||
void load() override;
|
void load() override;
|
||||||
void defaults() override;
|
void defaults() override;
|
||||||
|
|
|
@ -21,7 +21,6 @@ public:
|
||||||
ShareConfig(QObject *parent, const QVariantList &);
|
ShareConfig(QObject *parent, const QVariantList &);
|
||||||
~ShareConfig() override;
|
~ShareConfig() override;
|
||||||
|
|
||||||
public Q_SLOTS:
|
|
||||||
void save() override;
|
void save() override;
|
||||||
void load() override;
|
void load() override;
|
||||||
void defaults() override;
|
void defaults() override;
|
||||||
|
|
Loading…
Reference in a new issue