mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +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
|
@ -44,3 +44,8 @@ void GModel::set_selected_index(const GModelIndex& index)
|
|||
if (m_activates_on_selection && is_valid(index))
|
||||
activate(index);
|
||||
}
|
||||
|
||||
GModelIndex GModel::create_index(int row, int column, void* data) const
|
||||
{
|
||||
return GModelIndex(*this, row, column, data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue