1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 19:15:07 +00:00

LibGUI: Remove confusing GModelNotification concept

This was a bad idea and it didn't stick. Instead we should just use the
simple "on_foo" hook functions like we do for everything else. :^)
This commit is contained in:
Andreas Kling 2019-08-20 19:43:12 +02:00
parent 4f3234148a
commit f7dce05c82
6 changed files with 8 additions and 51 deletions

View file

@ -34,12 +34,10 @@ public:
Function<void(const GModelIndex&)> on_activation;
Function<void(const GModelIndex&)> on_selection;
Function<void(const GModelIndex&, const GContextMenuEvent&)> on_context_menu_request;
Function<void(const GModelNotification&)> on_model_notification;
Function<OwnPtr<GModelEditingDelegate>(const GModelIndex&)> aid_create_editing_delegate;
protected:
virtual void model_notification(const GModelNotification&);
virtual void did_scroll() override;
void activate(const GModelIndex&);
void update_edit_widget_position();