LibGUI: Move Model::index() out of line

This commit is contained in:
Andreas Kling 2020-08-13 16:04:17 +02:00
parent 82e949aa7c
commit fe19cf0ff2
Notes: sideshowbarker 2024-07-19 03:40:23 +09:00
2 changed files with 6 additions and 1 deletions

View file

@ -68,6 +68,11 @@ ModelIndex Model::create_index(int row, int column, const void* data) const
return ModelIndex(*this, row, column, const_cast<void*>(data));
}
ModelIndex Model::index(int row, int column, const ModelIndex&) const
{
return create_index(row, column);
}
ModelIndex Model::sibling(int row, int column, const ModelIndex& parent) const
{
if (!parent.is_valid())