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
This commit is contained in:
parent
a7aa089ec4
commit
5290583f8a
2 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue