diff --git a/Userland/Libraries/LibGUI/Model.h b/Userland/Libraries/LibGUI/Model.h index a710ff2c15d..e215132d29c 100644 --- a/Userland/Libraries/LibGUI/Model.h +++ b/Userland/Libraries/LibGUI/Model.h @@ -98,6 +98,13 @@ public: WeakPtr register_persistent_index(Badge, 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();