diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-20 02:39:46 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-20 02:39:46 +0100 |
commit | b704d3d295dd364279546f7b04b89420fda39751 (patch) | |
tree | 4afdadfedf64ce82a1cfff65774fb502b0a7e9e0 /SharedGraphics/Painter.cpp | |
parent | 4804609b7e8e2488b28d68e5171a61cd7a5ea848 (diff) | |
download | serenity-b704d3d295dd364279546f7b04b89420fda39751.zip |
LibGUI: Add a GToolBar class that can be populated with GActions.
The same action can be added to both a menu and a toolbar.
Use this to put a toolbar into FileManager. This is pretty neat. :^)
Diffstat (limited to 'SharedGraphics/Painter.cpp')
-rw-r--r-- | SharedGraphics/Painter.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/SharedGraphics/Painter.cpp b/SharedGraphics/Painter.cpp index b9f55a2af3..21ee3af872 100644 --- a/SharedGraphics/Painter.cpp +++ b/SharedGraphics/Painter.cpp @@ -14,8 +14,6 @@ #include <LibC/string.h> #endif -#define DEBUG_WIDGET_UNDERDRAW - Painter::Painter(GraphicsBitmap& bitmap) { m_font = &Font::default_font(); @@ -42,12 +40,6 @@ Painter::Painter(GWidget& widget) // NOTE: m_clip_rect is in Window coordinates since we are painting into its backing store. m_clip_rect = widget.window_relative_rect(); m_clip_rect.intersect(m_target->rect()); - -#ifdef DEBUG_WIDGET_UNDERDRAW - // If the widget is not opaque, let's not mess it up with debugging color. - if (widget.fill_with_background_color() && m_window->main_widget() != &widget) - fill_rect(widget.rect(), Color::Red); -#endif } #endif |