diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-23 19:12:50 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-23 19:12:50 +0200 |
commit | 2921793c016096d593d1fbd5647181199c6d769f (patch) | |
tree | 3f26c0dd194ac9365265687b4c7da089fd0114c9 /Applications | |
parent | 42ddd551efe3615ca5e190f30538806df7a30ead (diff) | |
download | serenity-2921793c016096d593d1fbd5647181199c6d769f.zip |
QuickShow: Draw GUI::Frame parts of QSWidget
We were forgetting to draw the frame. :^)
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/QuickShow/QSWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Applications/QuickShow/QSWidget.cpp b/Applications/QuickShow/QSWidget.cpp index 6dd215f925..2a748c76a9 100644 --- a/Applications/QuickShow/QSWidget.cpp +++ b/Applications/QuickShow/QSWidget.cpp @@ -162,10 +162,13 @@ void QSWidget::resize_event(GUI::ResizeEvent& event) void QSWidget::paint_event(GUI::PaintEvent& event) { + Frame::paint_event(event); + GUI::Painter painter(*this); painter.add_clip_rect(event.rect()); + painter.add_clip_rect(frame_inner_rect()); - painter.fill_rect_with_checkerboard(rect(), { 8, 8 }, palette().base().darkened(0.9), palette().base()); + painter.fill_rect_with_checkerboard(frame_inner_rect(), { 8, 8 }, palette().base().darkened(0.9), palette().base()); if (!m_bitmap.is_null()) painter.draw_scaled_bitmap(m_bitmap_rect, *m_bitmap, m_bitmap->rect()); |