Add border size to the implementation of DecorationSettings

Not yet read from any config value.
This commit is contained in:
Martin Gräßlin 2014-07-24 08:37:48 +02:00
parent c12199a8e0
commit b12d11a06c
2 changed files with 5 additions and 0 deletions

View file

@ -35,6 +35,7 @@ namespace Decoration
SettingsImpl::SettingsImpl(KDecoration2::DecorationSettings *parent)
: QObject()
, DecorationSettingsPrivate(parent)
, m_borderSize(KDecoration2::BorderSize::Normal)
{
readSettings();

View file

@ -39,6 +39,9 @@ public:
virtual ~SettingsImpl();
bool isAlphaChannelSupported() const override;
bool isOnAllDesktopsAvailable() const override;
KDecoration2::BorderSize borderSize() const override {
return m_borderSize;
}
QList< KDecoration2::DecorationButtonType > decorationButtonsLeft() const override {
return m_leftButtons;
}
@ -53,6 +56,7 @@ private:
const QList< KDecoration2::DecorationButtonType > &defaultValue) const;
QList< KDecoration2::DecorationButtonType > m_leftButtons;
QList< KDecoration2::DecorationButtonType > m_rightButtons;
KDecoration2::BorderSize m_borderSize;
};
} // Decoration
} // KWin