From 2921793c016096d593d1fbd5647181199c6d769f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 23 Apr 2020 19:12:50 +0200 Subject: [PATCH] QuickShow: Draw GUI::Frame parts of QSWidget We were forgetting to draw the frame. :^) --- Applications/QuickShow/QSWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Applications/QuickShow/QSWidget.cpp b/Applications/QuickShow/QSWidget.cpp index 6dd215f925b..2a748c76a97 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());