1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:17:43 +00:00

LibGUI: Make BreadcrumbBar report drop events

Dropping something on a breadcrumb segment button will now fire the
BreadcrumbBar::on_drop hook.

Fixes #4792.
This commit is contained in:
Andreas Kling 2021-01-08 18:53:37 +01:00
parent c762a0c4d6
commit 6159630fa0
2 changed files with 17 additions and 6 deletions

View file

@ -46,6 +46,7 @@ public:
Optional<size_t> selected_segment() const { return m_selected_segment; }
Function<void(size_t index)> on_segment_click;
Function<void(size_t index, DropEvent&)> on_drop;
private:
BreadcrumbBar();