summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/AbstractTableView.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-24 21:01:50 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-24 21:03:34 +0200
commite5a6e297bfbbe158a00fd4c76366fed852be29df (patch)
tree56152dc6b382667c69e4ec106ba5d93a88d9c8d6 /Libraries/LibGUI/AbstractTableView.h
parent4c65bd373111b9fe17e5dd6f79a9b79fc6e181d4 (diff)
downloadserenity-e5a6e297bfbbe158a00fd4c76366fed852be29df.zip
LibGUI: Add AbstractTableView::scroll_into_view(ModelIndex, bool, bool)
This API lets you specify whether to scroll horizontally, vertically, or both.
Diffstat (limited to 'Libraries/LibGUI/AbstractTableView.h')
-rw-r--r--Libraries/LibGUI/AbstractTableView.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/AbstractTableView.h b/Libraries/LibGUI/AbstractTableView.h
index e7bfdaac96..c405c64016 100644
--- a/Libraries/LibGUI/AbstractTableView.h
+++ b/Libraries/LibGUI/AbstractTableView.h
@@ -71,6 +71,7 @@ public:
Gfx::IntRect row_rect(int item_index) const;
void scroll_into_view(const ModelIndex&, Orientation);
+ void scroll_into_view(const ModelIndex&, bool scroll_horizontally, bool scroll_vertically);
virtual ModelIndex index_at_event_position(const Gfx::IntPoint&, bool& is_toggle) const;
virtual ModelIndex index_at_event_position(const Gfx::IntPoint&) const override;