From 9a0f40d4b5d8f5751432a88b1a479add8c814813 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 26 Aug 2020 16:34:10 +0200 Subject: [PATCH] LibGUI: Add a top-left-corner button to table views If both the row and column headers are visible, we now also show a button in the top left corner. This avoids the headers overlapping each other when you scroll the contents. In the future, this could be hooked up to a "select all" action. --- Libraries/LibGUI/AbstractTableView.cpp | 14 +++++++++++++- Libraries/LibGUI/AbstractTableView.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Libraries/LibGUI/AbstractTableView.cpp b/Libraries/LibGUI/AbstractTableView.cpp index 4994cca09d2..6f429ba33d7 100644 --- a/Libraries/LibGUI/AbstractTableView.cpp +++ b/Libraries/LibGUI/AbstractTableView.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -40,6 +41,10 @@ namespace GUI { AbstractTableView::AbstractTableView() { + m_corner_button = add