summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GItemView.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2020-01-22 21:12:05 +0300
committerAndreas Kling <kling@serenityos.org>2020-01-22 21:22:23 +0100
commitd3ce7ae0e305a4eb6056076eb34577a13e5f8ed5 (patch)
tree70ba406b2ff9d3f9a5e7b6a091944686e2fb4509 /Libraries/LibGUI/GItemView.h
parentfd11c96e8ec7c81c95cb2f8fd8258562fe4bef67 (diff)
downloadserenity-d3ce7ae0e305a4eb6056076eb34577a13e5f8ed5.zip
LibGUI: Move most of mouse event handling to GAbstractView
This deduplicates existing code, and also gives all the model-backed widgets selection manipulation and drag support for free :^)
Diffstat (limited to 'Libraries/LibGUI/GItemView.h')
-rw-r--r--Libraries/LibGUI/GItemView.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Libraries/LibGUI/GItemView.h b/Libraries/LibGUI/GItemView.h
index dfb52d30d4..4eb21552c6 100644
--- a/Libraries/LibGUI/GItemView.h
+++ b/Libraries/LibGUI/GItemView.h
@@ -61,8 +61,6 @@ private:
virtual void mousemove_event(GMouseEvent&) override;
virtual void mouseup_event(GMouseEvent&) override;
virtual void keydown_event(GKeyEvent&) override;
- virtual void doubleclick_event(GMouseEvent&) override;
- virtual void context_menu_event(GContextMenuEvent&) override;
int item_count() const;
Rect item_rect(int item_index) const;
@@ -75,10 +73,6 @@ private:
int m_visual_column_count { 0 };
int m_visual_row_count { 0 };
- bool m_might_drag { false };
-
- Point m_left_mousedown_position;
-
Size m_effective_item_size { 80, 80 };
bool m_rubber_banding { false };