diff options
Diffstat (limited to 'Widgets/Widget.h')
-rw-r--r-- | Widgets/Widget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Widgets/Widget.h b/Widgets/Widget.h index e025dc3aed..c0e9b428f2 100644 --- a/Widgets/Widget.h +++ b/Widgets/Widget.h @@ -76,6 +76,9 @@ public: Widget* parentWidget() { return static_cast<Widget*>(parent()); } const Widget* parentWidget() const { return static_cast<const Widget*>(parent()); } + void setFillWithBackgroundColor(bool b) { m_fillWithBackgroundColor = b; } + bool fillWithBackgroundColor() const { return m_fillWithBackgroundColor; } + private: Window* m_window { nullptr }; @@ -84,4 +87,5 @@ private: Color m_foregroundColor; bool m_hasPendingPaintEvent { false }; + bool m_fillWithBackgroundColor { false }; }; |