mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 18:58:56 +00:00
LibGUI: Register AbstractTableView.column_headers_visible
This was used before by SystemMonitor but not actually registered.
This commit is contained in:
parent
bfb587f29d
commit
67b5aea2f9
Notes:
sideshowbarker
2024-07-17 14:22:12 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 67b5aea2f9
Pull-request: https://github.com/SerenityOS/serenity/pull/13516
Issue: https://github.com/SerenityOS/serenity/issues/65
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <LibCore/Object.h>
|
||||||
#include <LibGUI/AbstractTableView.h>
|
#include <LibGUI/AbstractTableView.h>
|
||||||
#include <LibGUI/Action.h>
|
#include <LibGUI/Action.h>
|
||||||
#include <LibGUI/Button.h>
|
#include <LibGUI/Button.h>
|
||||||
|
@ -19,6 +20,8 @@ namespace GUI {
|
||||||
|
|
||||||
AbstractTableView::AbstractTableView()
|
AbstractTableView::AbstractTableView()
|
||||||
{
|
{
|
||||||
|
REGISTER_BOOL_PROPERTY("column_headers_visible", column_headers_visible, set_column_headers_visible);
|
||||||
|
|
||||||
set_selection_behavior(SelectionBehavior::SelectRows);
|
set_selection_behavior(SelectionBehavior::SelectRows);
|
||||||
m_corner_button = add<Button>();
|
m_corner_button = add<Button>();
|
||||||
m_corner_button->move_to_back();
|
m_corner_button->move_to_back();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue