mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibGUI: Make the "enabled" widget state propagate to child widgets
This simplifies building composite widgets by not having to worry about updating widget subtrees.
This commit is contained in:
parent
677568e3d4
commit
0f0d73d1b5
3 changed files with 6 additions and 11 deletions
|
@ -87,15 +87,6 @@ void SpinBox::set_range(int min, int max)
|
|||
update();
|
||||
}
|
||||
|
||||
void SpinBox::set_enabled(bool value)
|
||||
{
|
||||
Widget::set_enabled(value);
|
||||
|
||||
m_editor->set_enabled(value);
|
||||
m_increment_button->set_enabled(value);
|
||||
m_decrement_button->set_enabled(value);
|
||||
}
|
||||
|
||||
void SpinBox::keydown_event(KeyEvent& event)
|
||||
{
|
||||
if (event.key() == KeyCode::Key_Up) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue