mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
GSpinBox: The initial text should be "0".
This commit is contained in:
parent
862682b1bb
commit
1db169244a
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
Add a link
Reference in a new issue