diff --git a/kcmkwin/kwinrules/kcm.cpp b/kcmkwin/kwinrules/kcm.cpp
index a18a188da8..d8f24df9b5 100644
--- a/kcmkwin/kwinrules/kcm.cpp
+++ b/kcmkwin/kwinrules/kcm.cpp
@@ -51,6 +51,7 @@ KCMRules::KCMRules(QWidget *parent, const QVariantList &)
QString(), QString(), KAboutLicense::GPL, i18n("(c) 2004 KWin and KControl Authors"));
about->addAuthor(i18n("Lubos Lunak"), QString(), "l.lunak@kde.org");
setAboutData(about);
+ setButtons(KCModule::Help | KCModule::Apply);
}
void KCMRules::load()
@@ -70,11 +71,6 @@ void KCMRules::save()
}
-void KCMRules::defaults()
-{
- widget->defaults();
-}
-
QString KCMRules::quickHelp() const
{
return i18n("
Window-specific Settings
Here you can customize window settings specifically only"
diff --git a/kcmkwin/kwinrules/kcm.h b/kcmkwin/kwinrules/kcm.h
index 7d0c462c94..b096b2e6b6 100644
--- a/kcmkwin/kwinrules/kcm.h
+++ b/kcmkwin/kwinrules/kcm.h
@@ -38,7 +38,6 @@ public:
KCMRules(QWidget *parent, const QVariantList &args);
void load() override;
void save() override;
- void defaults() override;
QString quickHelp() const override;
protected Q_SLOTS:
void moduleChanged(bool state);
diff --git a/kcmkwin/kwinrules/ruleslist.cpp b/kcmkwin/kwinrules/ruleslist.cpp
index e2550f9b62..c74f7b62f7 100644
--- a/kcmkwin/kwinrules/ruleslist.cpp
+++ b/kcmkwin/kwinrules/ruleslist.cpp
@@ -229,10 +229,5 @@ void KCMRulesList::save()
m_settings.save();
}
-void KCMRulesList::defaults()
-{
- load();
-}
-
} // namespace
diff --git a/kcmkwin/kwinrules/ruleslist.h b/kcmkwin/kwinrules/ruleslist.h
index 81e846777d..a8b21ffd4e 100644
--- a/kcmkwin/kwinrules/ruleslist.h
+++ b/kcmkwin/kwinrules/ruleslist.h
@@ -36,7 +36,6 @@ public:
~KCMRulesList() override;
void load();
void save();
- void defaults();
Q_SIGNALS:
void changed(bool);
private Q_SLOTS: