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 | |
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')
-rw-r--r-- | Libraries/LibGUI/ListView.cpp | 14 | ||||
-rw-r--r-- | Libraries/LibGUI/ListView.h | 1 |
2 files changed, 0 insertions, 15 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(); - } - } -} - } diff --git a/Libraries/LibGUI/ListView.h b/Libraries/LibGUI/ListView.h index ebb2b04f9f..bb295116d0 100644 --- a/Libraries/LibGUI/ListView.h +++ b/Libraries/LibGUI/ListView.h @@ -66,7 +66,6 @@ private: virtual void did_update_model(unsigned flags) override; virtual void paint_event(PaintEvent&) override; - virtual void doubleclick_event(MouseEvent&) override; virtual void keydown_event(KeyEvent&) override; virtual void resize_event(ResizeEvent&) override; |