mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
FileManager: Use one SortingProxyModel for all DirectoryView subviews
This removes one major source of confusion in DirectoryView. It's still weird that we mix sorting model indexes with filesystem model indexes a bit willy-nilly but we'll improve that separately.
This commit is contained in:
parent
8c8281de4e
commit
7b110fad56
2 changed files with 20 additions and 25 deletions
|
@ -124,7 +124,7 @@ private:
|
|||
virtual void model_did_update(unsigned) override;
|
||||
|
||||
void handle_activation(const GUI::ModelIndex&);
|
||||
GUI::ModelIndex map_table_view_index(const GUI::ModelIndex&) const;
|
||||
GUI::ModelIndex map_index(const GUI::ModelIndex&) const;
|
||||
|
||||
void set_status_message(const StringView&);
|
||||
void update_statusbar();
|
||||
|
@ -132,6 +132,7 @@ private:
|
|||
ViewMode m_view_mode { Invalid };
|
||||
|
||||
NonnullRefPtr<GUI::FileSystemModel> m_model;
|
||||
NonnullRefPtr<GUI::SortingProxyModel> m_sorting_model;
|
||||
size_t m_path_history_position { 0 };
|
||||
Vector<String> m_path_history;
|
||||
void add_path_to_history(const StringView& path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue