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

FileManager: Hook up a GSortingProxyTableModel so we get sorted files. :^)

The next step here is coming up with a nice way to always put directories
ahead of files.
This commit is contained in:
Andreas Kling 2019-03-09 14:52:25 +01:00
parent 7d2c962836
commit e14dd06b8c
4 changed files with 25 additions and 10 deletions

View file

@ -19,8 +19,10 @@ public:
private:
virtual void model_notification(const GModelNotification&) override;
DirectoryTableModel& model() { return static_cast<DirectoryTableModel&>(*GTableView::model()); }
const DirectoryTableModel& model() const { return static_cast<const DirectoryTableModel&>(*GTableView::model()); }
DirectoryTableModel& model() { return *m_model; }
const DirectoryTableModel& model() const { return *m_model; }
void set_status_message(const String&);
DirectoryTableModel* m_model { nullptr };
};