mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 12:25:06 +00:00
GButton: Convert most code to using ObjectPtr for GButton
This commit is contained in:
parent
55a6e4ac0b
commit
45cfd57f6e
20 changed files with 38 additions and 38 deletions
|
@ -15,12 +15,12 @@ GSpinBox::GSpinBox(GWidget* parent)
|
|||
else
|
||||
m_editor->set_text(String::number(m_value));
|
||||
};
|
||||
m_increment_button = new GButton(this);
|
||||
m_increment_button = GButton::construct(this);
|
||||
m_increment_button->set_focusable(false);
|
||||
m_increment_button->set_text("\xc3\xb6");
|
||||
m_increment_button->on_click = [this](GButton&) { set_value(m_value + 1); };
|
||||
m_increment_button->set_auto_repeat_interval(150);
|
||||
m_decrement_button = new GButton(this);
|
||||
m_decrement_button = GButton::construct(this);
|
||||
m_decrement_button->set_focusable(false);
|
||||
m_decrement_button->set_text("\xc3\xb7");
|
||||
m_decrement_button->on_click = [this](GButton&) { set_value(m_value - 1); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue