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:
parent
7efd2a6d59
commit
04507e288f
2 changed files with 0 additions and 15 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue