LibGUI: Register AbstractTableView.column_headers_visible

This was used before by SystemMonitor but not actually registered.
This commit is contained in:
kleines Filmröllchen 2022-04-04 00:09:29 +02:00 committed by Andreas Kling
parent bfb587f29d
commit 67b5aea2f9

View file

@ -5,6 +5,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/Object.h>
#include <LibGUI/AbstractTableView.h>
#include <LibGUI/Action.h>
#include <LibGUI/Button.h>
@ -19,6 +20,8 @@ namespace GUI {
AbstractTableView::AbstractTableView()
{
REGISTER_BOOL_PROPERTY("column_headers_visible", column_headers_visible, set_column_headers_visible);
set_selection_behavior(SelectionBehavior::SelectRows);
m_corner_button = add<Button>();
m_corner_button->move_to_back();