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:
Alexander Lohnau 2023-07-20 17:03:06 +03:00 committed by Albert Vaca Cintora
parent 9fdc2901b2
commit c61fad5561
6 changed files with 2 additions and 9 deletions

View file

@ -21,10 +21,10 @@ public:
ClipboardConfig(QObject *parent, const QVariantList &);
~ClipboardConfig() override;
public Q_SLOTS:
void save() override;
void load() override;
void defaults() override;
public Q_SLOTS:
void autoShareChanged();
private:

View file

@ -21,15 +21,12 @@ public:
FindThisDeviceConfig(QObject *parent, const QVariantList &);
~FindThisDeviceConfig() override;
public Q_SLOTS:
void save() override;
void load() override;
void defaults() override;
private Q_SLOTS:
void playSound(const QUrl &soundUrl);
private:
void playSound(const QUrl &soundUrl);
Ui::FindThisDeviceConfigUi *m_ui;
};

View file

@ -21,7 +21,6 @@ public:
PauseMusicConfig(QObject *parent, const QVariantList &);
~PauseMusicConfig() override;
public Q_SLOTS:
void save() override;
void load() override;
void defaults() override;

View file

@ -18,7 +18,6 @@ class RunCommandConfig : public KdeConnectPluginKcm
public:
RunCommandConfig(QObject *parent, const QVariantList &);
public Q_SLOTS:
void save() override;
void load() override;
void defaults() override;

View file

@ -23,7 +23,6 @@ public:
SendNotificationsConfig(QObject *parent, const QVariantList &);
~SendNotificationsConfig() override;
public Q_SLOTS:
void save() override;
void load() override;
void defaults() override;

View file

@ -21,7 +21,6 @@ public:
ShareConfig(QObject *parent, const QVariantList &);
~ShareConfig() override;
public Q_SLOTS:
void save() override;
void load() override;
void defaults() override;