mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:28:12 +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
|
@ -79,7 +79,7 @@ DirectoryView::DirectoryView(GWidget* parent)
|
|||
m_item_view = GItemView::construct(this);
|
||||
m_item_view->set_model(model());
|
||||
|
||||
m_table_view = new GTableView(this);
|
||||
m_table_view = GTableView::construct(this);
|
||||
m_table_view->set_model(GSortingProxyModel::create(m_model));
|
||||
|
||||
m_table_view->model()->set_key_column_and_sort_order(GDirectoryModel::Column::Name, GSortOrder::Ascending);
|
||||
|
|
|
@ -72,6 +72,6 @@ private:
|
|||
Vector<String> m_path_history;
|
||||
void add_path_to_history(const StringView& path);
|
||||
|
||||
GTableView* m_table_view { nullptr };
|
||||
ObjectPtr<GTableView> m_table_view;
|
||||
ObjectPtr<GItemView> m_item_view;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue