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:
parent
c762a0c4d6
commit
6159630fa0
2 changed files with 17 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue