Rename Painter::set_clip_rect() to add_clip_rect().

It was confusing to see multiple calls to set_foo() in a row. Since this is
an intersecting operation, let's call it add_clip_rect() instead.
This commit is contained in:
Andreas Kling 2019-03-29 15:01:54 +01:00
commit f249c40aaa
Notes: sideshowbarker 2024-07-19 14:54:14 +09:00
18 changed files with 28 additions and 28 deletions

View file

@ -193,7 +193,7 @@ Rect GScrollBar::scrubber_rect() const
void GScrollBar::paint_event(GPaintEvent& event)
{
GPainter painter(*this);
painter.set_clip_rect(event.rect());
painter.add_clip_rect(event.rect());
painter.fill_rect(rect(), Color::from_rgb(0xd6d2ce));