mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 16:45:08 +00:00
LibGUI: Make GTableModel a retainable object.
It became clear that this class needs to support multiple owners.
This commit is contained in:
parent
41c744b3c8
commit
f47945759b
22 changed files with 44 additions and 34 deletions
|
@ -6,7 +6,7 @@
|
|||
ProcessTableView::ProcessTableView(GWidget* parent)
|
||||
: GTableView(parent)
|
||||
{
|
||||
set_model(make<GSortingProxyTableModel>(make<ProcessTableModel>()));
|
||||
set_model(GSortingProxyTableModel::create(ProcessTableModel::create()));
|
||||
model()->set_key_column_and_sort_order(ProcessTableModel::Column::CPU, GSortOrder::Descending);
|
||||
start_timer(1000);
|
||||
model()->update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue