diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/TreeView.h')
-rw-r--r-- | Userland/Libraries/LibGUI/TreeView.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGUI/TreeView.h b/Userland/Libraries/LibGUI/TreeView.h index abb9c40436..75ba2abe5d 100644 --- a/Userland/Libraries/LibGUI/TreeView.h +++ b/Userland/Libraries/LibGUI/TreeView.h @@ -17,17 +17,17 @@ class TreeView : public AbstractTableView { public: virtual ~TreeView() override = default; - virtual void scroll_into_view(const ModelIndex&, bool scroll_horizontally, bool scroll_vertically) override; + virtual void scroll_into_view(ModelIndex const&, bool scroll_horizontally, bool scroll_vertically) override; virtual int item_count() const override; - virtual void toggle_index(const ModelIndex&) override; + virtual void toggle_index(ModelIndex const&) override; - void expand_tree(const ModelIndex& root = {}); - void collapse_tree(const ModelIndex& root = {}); + void expand_tree(ModelIndex const& root = {}); + void collapse_tree(ModelIndex const& root = {}); - void expand_all_parents_of(const ModelIndex&); + void expand_all_parents_of(ModelIndex const&); - Function<void(const ModelIndex&, const bool)> on_toggle; + Function<void(ModelIndex const&, bool const)> on_toggle; void set_should_fill_selected_rows(bool fill) { m_should_fill_selected_rows = fill; } bool should_fill_selected_rows() const { return m_should_fill_selected_rows; } @@ -51,7 +51,7 @@ protected: virtual void move_cursor(CursorMovement, SelectionUpdate) override; private: - virtual ModelIndex index_at_event_position(const Gfx::IntPoint&, bool& is_toggle) const override; + virtual ModelIndex index_at_event_position(Gfx::IntPoint const&, bool& is_toggle) const override; int row_height() const { return 16; } int max_item_width() const { return frame_inner_rect().width(); } @@ -69,8 +69,8 @@ private: struct MetadataForIndex; - MetadataForIndex& ensure_metadata_for_index(const ModelIndex&) const; - void set_open_state_of_all_in_subtree(const ModelIndex& root, bool open); + MetadataForIndex& ensure_metadata_for_index(ModelIndex const&) const; + void set_open_state_of_all_in_subtree(ModelIndex const& root, bool open); mutable HashMap<void*, NonnullOwnPtr<MetadataForIndex>> m_view_metadata; |