mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
LibGUI: Convert GTreeView to ObjectPtr
This commit is contained in:
parent
e7b55037f4
commit
efb8f9d538
3 changed files with 4 additions and 3 deletions
|
@ -59,7 +59,7 @@ int main(int argc, char** argv)
|
|||
auto location_textbox = GTextEditor::construct(GTextEditor::SingleLine, location_toolbar);
|
||||
|
||||
auto* splitter = new GSplitter(Orientation::Horizontal, widget);
|
||||
auto* tree_view = new GTreeView(splitter);
|
||||
auto tree_view = GTreeView::construct(splitter);
|
||||
auto file_system_model = GFileSystemModel::create("/", GFileSystemModel::Mode::DirectoriesOnly);
|
||||
tree_view->set_model(file_system_model);
|
||||
tree_view->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue