mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibGUI: Fix for disable state of SpinBox
This commit is contained in:
parent
532d4bc0ab
commit
f0f98de5d8
2 changed files with 11 additions and 0 deletions
|
@ -87,6 +87,15 @@ 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