mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05: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
|
@ -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