mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:25:07 +00:00
LibGUI+FileManager: Add GAbstractView::on_selection_change hook
This hook will be called whenever the view's selection changes somehow. Use this in the FileManager to keep the left and right views in sync.
This commit is contained in:
parent
9d97781e37
commit
6dec328af7
3 changed files with 6 additions and 2 deletions
|
@ -36,6 +36,7 @@ public:
|
|||
void set_activates_on_selection(bool b) { m_activates_on_selection = b; }
|
||||
bool activates_on_selection() const { return m_activates_on_selection; }
|
||||
|
||||
Function<void()> on_selection_change;
|
||||
Function<void(const GModelIndex&)> on_activation;
|
||||
Function<void(const GModelIndex&)> on_selection;
|
||||
Function<void(const GModelIndex&, const GContextMenuEvent&)> on_context_menu_request;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue