mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibGUI: Add Button double-click callback
This commit is contained in:
parent
af03cf9e80
commit
8f717927f2
4 changed files with 17 additions and 1 deletions
|
@ -160,6 +160,12 @@ void AbstractButton::mouseup_event(MouseEvent& event)
|
|||
Widget::mouseup_event(event);
|
||||
}
|
||||
|
||||
void AbstractButton::doubleclick_event(GUI::MouseEvent& event)
|
||||
{
|
||||
double_click(event.modifiers());
|
||||
Widget::doubleclick_event(event);
|
||||
}
|
||||
|
||||
void AbstractButton::enter_event(Core::Event&)
|
||||
{
|
||||
m_hovered = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue