GSpinBox: The initial text should be "0".
This commit is contained in:
parent
862682b1bb
commit
1db169244a
Notes:
sideshowbarker
2024-07-19 13:34:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1db169244ab
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ GSpinBox::GSpinBox(GWidget* parent)
|
|||
: GWidget(parent)
|
||||
{
|
||||
m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this);
|
||||
m_editor->set_text("0");
|
||||
m_editor->on_change = [this] {
|
||||
bool ok;
|
||||
int value = m_editor->text().to_uint(ok);
|
||||
|
|
Loading…
Add table
Reference in a new issue