From df9638012197fc3a15ad1ece7a875ed805a9bce5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 10 Jul 2021 17:11:04 +0200 Subject: LibGUI: Tighten paint invalidation rects in item views :^) AbstractView now has a paint_invalidation_rect(index) function that subclasses can override to provide a tighter invalidation rect for an index. --- Userland/Libraries/LibGUI/ColumnsView.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibGUI/ColumnsView.h') diff --git a/Userland/Libraries/LibGUI/ColumnsView.h b/Userland/Libraries/LibGUI/ColumnsView.h index d143e633ac..d0c7a29dee 100644 --- a/Userland/Libraries/LibGUI/ColumnsView.h +++ b/Userland/Libraries/LibGUI/ColumnsView.h @@ -19,6 +19,7 @@ public: virtual ModelIndex index_at_event_position(const Gfx::IntPoint&) const override; virtual Gfx::IntRect content_rect(const ModelIndex&) const override; + virtual Gfx::IntRect paint_invalidation_rect(ModelIndex const&) const override; private: ColumnsView(); -- cgit v1.2.3