1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -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;