mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
LibGUI: Convert GSpinBox to ObjectPtr
This commit is contained in:
parent
83b5f6c11a
commit
b78225941d
4 changed files with 6 additions and 5 deletions
|
@ -53,7 +53,7 @@ void ColorDialog::build()
|
|||
};
|
||||
|
||||
auto make_spinbox = [&](RGBComponent component, int initial_value) {
|
||||
auto* spinbox = new GSpinBox(left_vertical_container);
|
||||
auto spinbox = GSpinBox::construct(left_vertical_container);
|
||||
spinbox->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
spinbox->set_preferred_size(0, 20);
|
||||
spinbox->set_min(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue