mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +00:00
LibGUI: Add Model::unsafe_create_index()
This will be used by Ladybird to translate between LibGUI and Qt models.
This commit is contained in:
parent
05985b51f2
commit
d89dc6e24c
1 changed files with 7 additions and 0 deletions
|
@ -98,6 +98,13 @@ public:
|
|||
|
||||
WeakPtr<PersistentHandle> register_persistent_index(Badge<PersistentModelIndex>, ModelIndex const&);
|
||||
|
||||
// NOTE: This is a public version of create_index() which is normally protected,
|
||||
// but this can be used when creating a model translator like in Ladybird.
|
||||
ModelIndex unsafe_create_index(int row, int column, void const* data = nullptr) const
|
||||
{
|
||||
return create_index(row, column, data);
|
||||
}
|
||||
|
||||
protected:
|
||||
Model();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue