LibGUI: Remove ListView::doubleclick_event()

We can just let AbstractView take care of this. :^)
This commit is contained in:
Andreas Kling 2020-09-01 16:43:55 +02:00
commit 04507e288f
Notes: sideshowbarker 2024-07-19 02:56:31 +09:00
2 changed files with 0 additions and 15 deletions

View file

@ -288,18 +288,4 @@ void ListView::scroll_into_view(const ModelIndex& index, Orientation orientation
ScrollableWidget::scroll_into_view(rect, orientation);
}
void ListView::doubleclick_event(MouseEvent& event)
{
if (!model())
return;
if (event.button() == MouseButton::Left) {
if (!selection().is_empty()) {
if (is_editable())
begin_editing(selection().first());
else
activate_selected();
}
}
}
}