diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-01 16:43:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-01 17:45:28 +0200 |
commit | 04507e288fd08517a64ff7cbe43e7a1405cf3542 (patch) | |
tree | cf072ece4adc6c8766fee90af936e8c576407cb8 /Libraries/LibGUI/ListView.cpp | |
parent | 7efd2a6d59d1de38d0b0ae83415589a08b30f8d9 (diff) | |
download | serenity-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.cpp | 14 |
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(); - } - } -} - } |