summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/ListView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-01 16:43:55 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-01 17:45:28 +0200
commit04507e288fd08517a64ff7cbe43e7a1405cf3542 (patch)
treecf072ece4adc6c8766fee90af936e8c576407cb8 /Libraries/LibGUI/ListView.cpp
parent7efd2a6d59d1de38d0b0ae83415589a08b30f8d9 (diff)
downloadserenity-04507e288fd08517a64ff7cbe43e7a1405cf3542.zip
LibGUI: Remove ListView::doubleclick_event()
We can just let AbstractView take care of this. :^)
Diffstat (limited to 'Libraries/LibGUI/ListView.cpp')
-rw-r--r--Libraries/LibGUI/ListView.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/Libraries/LibGUI/ListView.cpp b/Libraries/LibGUI/ListView.cpp
index a4572f0e39..56f9963fc9 100644
--- a/Libraries/LibGUI/ListView.cpp
+++ b/Libraries/LibGUI/ListView.cpp
@@ -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();
- }
- }
-}
-
}