Changeset View
Changeset View
Standalone View
Standalone View
decorations/settings.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 43 | KDecoration2::BorderSize borderSize() const override { | |||
---|---|---|---|---|---|
44 | return m_borderSize; | 44 | return m_borderSize; | ||
45 | } | 45 | } | ||
46 | QVector< KDecoration2::DecorationButtonType > decorationButtonsLeft() const override { | 46 | QVector< KDecoration2::DecorationButtonType > decorationButtonsLeft() const override { | ||
47 | return m_leftButtons; | 47 | return m_leftButtons; | ||
48 | } | 48 | } | ||
49 | QVector< KDecoration2::DecorationButtonType > decorationButtonsRight() const override { | 49 | QVector< KDecoration2::DecorationButtonType > decorationButtonsRight() const override { | ||
50 | return m_rightButtons; | 50 | return m_rightButtons; | ||
51 | } | 51 | } | ||
52 | QFont font() const override { | ||||
53 | return m_font; | ||||
54 | } | ||||
52 | 55 | | |||
53 | private: | 56 | private: | ||
54 | void readSettings(); | 57 | void readSettings(); | ||
55 | QVector< KDecoration2::DecorationButtonType > readDecorationButtons(const KConfigGroup &config, | 58 | QVector< KDecoration2::DecorationButtonType > readDecorationButtons(const KConfigGroup &config, | ||
56 | const char *key, | 59 | const char *key, | ||
57 | const QVector< KDecoration2::DecorationButtonType > &defaultValue) const; | 60 | const QVector< KDecoration2::DecorationButtonType > &defaultValue) const; | ||
58 | QVector< KDecoration2::DecorationButtonType > m_leftButtons; | 61 | QVector< KDecoration2::DecorationButtonType > m_leftButtons; | ||
59 | QVector< KDecoration2::DecorationButtonType > m_rightButtons; | 62 | QVector< KDecoration2::DecorationButtonType > m_rightButtons; | ||
60 | KDecoration2::BorderSize m_borderSize; | 63 | KDecoration2::BorderSize m_borderSize; | ||
61 | bool m_closeDoubleClickMenu = false; | 64 | bool m_closeDoubleClickMenu = false; | ||
65 | QFont m_font; | ||||
62 | }; | 66 | }; | ||
63 | } // Decoration | 67 | } // Decoration | ||
64 | } // KWin | 68 | } // KWin | ||
65 | 69 | | |||
66 | #endif | 70 | #endif |