mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
LibGUI: Convert GSplitter to ObjectPtr
This commit is contained in:
parent
efb8f9d538
commit
4f4438c04c
7 changed files with 10 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue