mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
FileManager: Make the tree view follow the directory view navigations.
This commit is contained in:
parent
f10e0d0546
commit
2c6a597d77
10 changed files with 72 additions and 3 deletions
|
@ -7,6 +7,7 @@ public:
|
|||
explicit GTreeView(GWidget*);
|
||||
virtual ~GTreeView() override;
|
||||
|
||||
virtual void scroll_into_view(const GModelIndex&, Orientation);
|
||||
virtual const char* class_name() const override { return "GTreeView"; }
|
||||
|
||||
GModelIndex index_at_content_position(const Point&) const;
|
||||
|
@ -14,6 +15,7 @@ public:
|
|||
protected:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void mousedown_event(GMouseEvent&) override;
|
||||
virtual void did_update_selection() override;
|
||||
|
||||
private:
|
||||
int item_height() const { return 16; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue