mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibGUI: Convert remaining random little things to ObjectPtr
This commit is contained in:
parent
81a5c4fc56
commit
409494193e
11 changed files with 15 additions and 13 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
|
||||
virtual ObjectPtr<GWidget> create_widget() override
|
||||
{
|
||||
auto* combo = new GComboBox(nullptr);
|
||||
auto combo = GComboBox::construct(nullptr);
|
||||
combo->set_only_allow_values_from_model(true);
|
||||
combo->set_model(adopt(*new BoolValuesModel));
|
||||
combo->on_return_pressed = [this] { commit(); };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue