Commit 5290583f authored by Benjamin Port's avatar Benjamin Port Committed by Benjamin Port

KCM KWin Decoration: Remove isDefault

Custom code for isDefault is not needed. Indeed, testing dropdown value is not needed to know if we have a default value or not. Testing theme and border size auto is enough, and it's done automatically by KConfigXT
parent a7aa089e
......@@ -242,11 +242,6 @@ bool KCMKWinDecoration::isSaveNeeded() const
return !m_settings->borderSizeAuto() && borderSizeIndexFromString(m_settings->borderSize()) != m_borderSizeIndex;
}
bool KCMKWinDecoration::isDefaults() const
{
return m_settings->borderSizeAuto() && recommendedBorderSize() == m_borderSizeIndex;
}
int KCMKWinDecoration::borderSizeIndexFromString(const QString &size) const
{
return Utils::getBorderSizeNames().keys().indexOf(Utils::stringToBorderSize(size));
......
......@@ -86,7 +86,6 @@ private Q_SLOTS:
private:
bool isSaveNeeded() const override;
bool isDefaults() const override;
int borderSizeIndexFromString(const QString &size) const;
QString borderSizeIndexToString(int index) const;
......
Markdown is supported
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