summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DevTools/Inspector/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/DevTools/Inspector/main.cpp b/DevTools/Inspector/main.cpp
index f93dc1bec0..611d52491e 100644
--- a/DevTools/Inspector/main.cpp
+++ b/DevTools/Inspector/main.cpp
@@ -63,7 +63,7 @@ int main(int argc, char** argv)
widget->set_fill_with_background_color(true);
widget->set_layout(make<GUI::VerticalBoxLayout>());
- auto splitter = GUI::HorizontalSplitter::construct(widget);
+ auto splitter = widget->add<GUI::HorizontalSplitter>();
RemoteProcess remote_process(pid);
@@ -72,11 +72,11 @@ int main(int argc, char** argv)
window->set_title(String::format("Inspector: %s (%d)", remote_process.process_name().characters(), remote_process.pid()));
};
- auto tree_view = GUI::TreeView::construct(splitter);
+ auto tree_view = splitter->add<GUI::TreeView>();
tree_view->set_model(remote_process.object_graph_model());
tree_view->set_activates_on_selection(true);
- auto properties_table_view = GUI::TableView::construct(splitter);
+ auto properties_table_view = splitter->add<GUI::TableView>();
properties_table_view->set_size_columns_to_fit_content(true);
tree_view->on_activation = [&](auto& index) {