mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibGUI: Expand GModelIndex a bit, adding internal data and model pointers.
This will be useful for implementing more complicated models.
This commit is contained in:
parent
12ec55ee74
commit
d02238af48
Notes:
sideshowbarker
2024-07-19 14:54:19 +09:00
Author: https://github.com/awesomekling
Commit: d02238af48
10 changed files with 94 additions and 34 deletions
|
@ -33,5 +33,5 @@ pid_t ProcessTableView::selected_pid() const
|
|||
{
|
||||
if (!model()->selected_index().is_valid())
|
||||
return -1;
|
||||
return model()->data({ model()->selected_index().row(), ProcessModel::Column::PID }, GModel::Role::Sort).as_int();
|
||||
return model()->data(model()->index(model()->selected_index().row(), ProcessModel::Column::PID), GModel::Role::Sort).as_int();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue