mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGUI: Convert GTableView to ObjectPtr
This commit is contained in:
parent
c13b9e2214
commit
e7b55037f4
20 changed files with 27 additions and 26 deletions
|
@ -50,7 +50,7 @@ int main(int argc, char** argv)
|
|||
tree_view->set_model(remote_process.object_graph_model());
|
||||
tree_view->set_activates_on_selection(true);
|
||||
|
||||
auto* properties_table_view = new GTableView(splitter);
|
||||
auto properties_table_view = GTableView::construct(splitter);
|
||||
properties_table_view->set_size_columns_to_fit_content(true);
|
||||
|
||||
tree_view->on_activation = [&](auto& index) {
|
||||
|
|
|
@ -61,7 +61,7 @@ VBPropertiesWindow::VBPropertiesWindow()
|
|||
widget->layout()->set_margins({ 2, 2, 2, 2 });
|
||||
set_main_widget(widget);
|
||||
|
||||
m_table_view = new GTableView(widget);
|
||||
m_table_view = GTableView::construct(widget);
|
||||
m_table_view->set_headers_visible(false);
|
||||
m_table_view->set_editable(true);
|
||||
|
||||
|
|
|
@ -14,5 +14,5 @@ public:
|
|||
const GTableView& table_view() const { return *m_table_view; }
|
||||
|
||||
private:
|
||||
GTableView* m_table_view { nullptr };
|
||||
ObjectPtr<GTableView> m_table_view;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue