summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-23 19:12:50 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 19:12:50 +0200
commit2921793c016096d593d1fbd5647181199c6d769f (patch)
tree3f26c0dd194ac9365265687b4c7da089fd0114c9 /Applications
parent42ddd551efe3615ca5e190f30538806df7a30ead (diff)
downloadserenity-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.cpp5
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());