mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
LibGUI: Allow double clicking on tabwidgets
This commit is contained in:
parent
5ca242ce30
commit
0cfe446d3f
2 changed files with 14 additions and 0 deletions
|
@ -86,6 +86,7 @@ public:
|
|||
Function<void(Widget&)> on_middle_click;
|
||||
Function<void(Widget&)> on_tab_close_click;
|
||||
Function<void(Widget&, const ContextMenuEvent&)> on_context_menu_request;
|
||||
Function<void(Widget&)> on_double_click;
|
||||
|
||||
protected:
|
||||
TabWidget();
|
||||
|
@ -99,6 +100,7 @@ protected:
|
|||
virtual void leave_event(Core::Event&) override;
|
||||
virtual void keydown_event(KeyEvent&) override;
|
||||
virtual void context_menu_event(ContextMenuEvent&) override;
|
||||
virtual void doubleclick_event(MouseEvent&) override;
|
||||
|
||||
private:
|
||||
Gfx::IntRect child_rect_for_size(const Gfx::IntSize&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue