mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibGUI: Remove AbstractTableView::doubleclick_event()
This work is already done (and more correctly) by the parent class (AbstractView) if we just let it take care of the event instead. Fixes the root cause of #4096.
This commit is contained in:
@@ -242,18 +242,6 @@ void AbstractTableView::scroll_into_view(const ModelIndex& index, bool scroll_ho
|
||||
ScrollableWidget::scroll_into_view(content_rect(index), scroll_horizontally, scroll_vertically);
|
||||
}
|
||||
|
||||
void AbstractTableView::doubleclick_event(MouseEvent& event)
|
||||
{
|
||||
if (!model())
|
||||
return;
|
||||
if (event.button() == MouseButton::Left) {
|
||||
if (is_editable() && edit_triggers() & EditTrigger::DoubleClicked)
|
||||
begin_editing(cursor_index());
|
||||
else
|
||||
activate(cursor_index());
|
||||
}
|
||||
}
|
||||
|
||||
void AbstractTableView::context_menu_event(ContextMenuEvent& event)
|
||||
{
|
||||
if (!model())
|
||||
|
||||
Reference in New Issue
Block a user