LibGUI: Convert GSplitter to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 16:11:02 +02:00
commit 4f4438c04c
Notes: sideshowbarker 2024-07-19 12:02:06 +09:00
7 changed files with 10 additions and 8 deletions

View file

@ -58,7 +58,7 @@ int main(int argc, char** argv)
auto location_textbox = GTextEditor::construct(GTextEditor::SingleLine, location_toolbar);
auto* splitter = new GSplitter(Orientation::Horizontal, widget);
auto splitter = GSplitter::construct(Orientation::Horizontal, widget);
auto tree_view = GTreeView::construct(splitter);
auto file_system_model = GFileSystemModel::create("/", GFileSystemModel::Mode::DirectoriesOnly);
tree_view->set_model(file_system_model);