QuickShow: Draw GUI::Frame parts of QSWidget

We were forgetting to draw the frame. :^)
This commit is contained in:
Andreas Kling 2020-04-23 19:12:50 +02:00
parent 42ddd551ef
commit 2921793c01
Notes: sideshowbarker 2024-07-19 07:21:55 +09:00

View File

@ -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());