1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 05:57:41 +00:00

GAbstractView: Add on_selection callback.

This callback is fired whenever the model's selection is updated.
Note that it only fires when there is a model, and when the index is valid.
This commit is contained in:
Andreas Kling 2019-06-22 10:40:35 +02:00
parent dd6b8135c2
commit d0b7d5e84c
2 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@ public:
bool activates_on_selection() const { return m_activates_on_selection; }
Function<void(const GModelIndex&)> on_activation;
Function<void(const GModelIndex&)> on_selection;
Function<void(const GModelNotification&)> on_model_notification;
virtual const char* class_name() const override { return "GAbstractView"; }