1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 21:48:11 +00:00

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
parent 7efd2a6d59
commit 04507e288f
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();
}
}
}
}