|
@@ -240,6 +240,11 @@ void Widget::handle_paint_event(PaintEvent& event)
|
|
|
return IterationDecision::Continue;
|
|
|
});
|
|
|
second_paint_event(event);
|
|
|
+
|
|
|
+ if (is_being_inspected()) {
|
|
|
+ Painter painter(*this);
|
|
|
+ painter.draw_rect(rect(), Color::Magenta);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void Widget::set_layout(NonnullRefPtr<Layout> layout)
|
|
@@ -763,4 +768,14 @@ Gfx::Palette Widget::palette() const
|
|
|
return Gfx::Palette(*m_palette);
|
|
|
}
|
|
|
|
|
|
+void Widget::did_begin_inspection()
|
|
|
+{
|
|
|
+ update();
|
|
|
+}
|
|
|
+
|
|
|
+void Widget::did_end_inspection()
|
|
|
+{
|
|
|
+ update();
|
|
|
+}
|
|
|
+
|
|
|
}
|