mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibGUI: Register a whole bunch of properties in various widgets
This commit is contained in:
parent
20b74e4ede
commit
90aeacbb58
Notes:
sideshowbarker
2024-07-19 00:23:50 +09:00
Author: https://github.com/alimpfard
Commit: 90aeacbb58
Pull-request: https://github.com/SerenityOS/serenity/pull/4652
Reviewed-by: https://github.com/awesomekling
14 changed files with 65 additions and 7 deletions
|
@ -58,6 +58,9 @@ SpinBox::SpinBox()
|
|||
m_decrement_button->set_focus_policy(GUI::FocusPolicy::NoFocus);
|
||||
m_decrement_button->on_click = [this](auto) { set_value(m_value - 1); };
|
||||
m_decrement_button->set_auto_repeat_interval(150);
|
||||
|
||||
REGISTER_INT_PROPERTY("min", min, set_min);
|
||||
REGISTER_INT_PROPERTY("max", max, set_max);
|
||||
}
|
||||
|
||||
SpinBox::~SpinBox()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue