mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:47:34 +00:00
LibGUI: Expose more TabWidget properties to GML
- close_button_enabled - show_tab_bar - reorder_allowed
This commit is contained in:
parent
f64a164392
commit
0e1c8e702c
2 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,6 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/JsonObject.h>
|
||||
#include <AK/JsonValue.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
|
@ -26,6 +25,9 @@ TabWidget::TabWidget()
|
|||
set_focus_policy(FocusPolicy::NoFocus);
|
||||
|
||||
REGISTER_MARGINS_PROPERTY("container_margins", container_margins, set_container_margins);
|
||||
REGISTER_BOOL_PROPERTY("show_close_buttons", close_button_enabled, set_close_button_enabled);
|
||||
REGISTER_BOOL_PROPERTY("show_tab_bar", is_bar_visible, set_bar_visible);
|
||||
REGISTER_BOOL_PROPERTY("reorder_allowed", reorder_allowed, set_reorder_allowed);
|
||||
REGISTER_BOOL_PROPERTY("uniform_tabs", uniform_tabs, set_uniform_tabs);
|
||||
|
||||
register_property(
|
||||
|
|
|
@ -81,6 +81,7 @@ public:
|
|||
bool is_bar_visible() const { return m_bar_visible; };
|
||||
|
||||
void set_close_button_enabled(bool close_button_enabled) { m_close_button_enabled = close_button_enabled; };
|
||||
bool close_button_enabled() const { return m_close_button_enabled; }
|
||||
|
||||
void set_reorder_allowed(bool reorder_allowed) { m_reorder_allowed = reorder_allowed; }
|
||||
bool reorder_allowed() const { return m_reorder_allowed; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue