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 KConfigXTmaster
parent
a7aa089ec4
commit
5290583f8a
|
@ -242,11 +242,6 @@ bool KCMKWinDecoration::isSaveNeeded() const
|
||||||
return !m_settings->borderSizeAuto() && borderSizeIndexFromString(m_settings->borderSize()) != m_borderSizeIndex;
|
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
|
int KCMKWinDecoration::borderSizeIndexFromString(const QString &size) const
|
||||||
{
|
{
|
||||||
return Utils::getBorderSizeNames().keys().indexOf(Utils::stringToBorderSize(size));
|
return Utils::getBorderSizeNames().keys().indexOf(Utils::stringToBorderSize(size));
|
||||||
|
|
|
@ -86,7 +86,6 @@ private Q_SLOTS:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool isSaveNeeded() const override;
|
bool isSaveNeeded() const override;
|
||||||
bool isDefaults() const override;
|
|
||||||
|
|
||||||
int borderSizeIndexFromString(const QString &size) const;
|
int borderSizeIndexFromString(const QString &size) const;
|
||||||
QString borderSizeIndexToString(int index) const;
|
QString borderSizeIndexToString(int index) const;
|
||||||
|
|
Loading…
Reference in New Issue