diff options
Diffstat (limited to 'Libraries/LibGUI/FileSystemModel.h')
-rw-r--r-- | Libraries/LibGUI/FileSystemModel.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Libraries/LibGUI/FileSystemModel.h b/Libraries/LibGUI/FileSystemModel.h index c09bea5012..7948f128d0 100644 --- a/Libraries/LibGUI/FileSystemModel.h +++ b/Libraries/LibGUI/FileSystemModel.h @@ -87,11 +87,18 @@ public: int error() const { return m_error; } const char* error_string() const { return strerror(m_error); } - String full_path(const FileSystemModel&) const; + String full_path() const; private: friend class FileSystemModel; + explicit Node(FileSystemModel& model) + : m_model(model) + { + } + + FileSystemModel& m_model; + Node* parent { nullptr }; NonnullOwnPtrVector<Node> children; bool has_traversed { false }; @@ -103,9 +110,9 @@ public: int m_error { 0 }; - ModelIndex index(const FileSystemModel&, int column) const; - void traverse_if_needed(const FileSystemModel&); - void reify_if_needed(const FileSystemModel&); + ModelIndex index(int column) const; + void traverse_if_needed(); + void reify_if_needed(); bool fetch_data(const String& full_path, bool is_root); }; |