1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

HackStudio: Sort the project tree alphabetically

I had to turn the tree nodes into RefCounted objects since it's not
possible to quick_sort() a Vector<OwnPtr<T>> at the moment.
This commit is contained in:
Andreas Kling 2019-12-23 00:36:57 +01:00
parent d9706ee882
commit 6e27b14a4a
2 changed files with 27 additions and 11 deletions

View file

@ -40,7 +40,7 @@ private:
String m_path;
RefPtr<GModel> m_model;
NonnullRefPtrVector<ProjectFile> m_files;
OwnPtr<ProjectTreeNode> m_root_node;
RefPtr<ProjectTreeNode> m_root_node;
GIcon m_directory_icon;
GIcon m_file_icon;