1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:58:12 +00:00

LibGUI: Convert GRadioButton to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 18:58:03 +02:00
parent 870bc2a4d1
commit f8d751440b
3 changed files with 11 additions and 6 deletions

View file

@ -33,9 +33,9 @@ int main(int argc, char** argv)
auto* checkbox2 = new GCheckBox("GCheckBox 2", main_widget);
checkbox2->set_enabled(false);
auto* radio1 = new GRadioButton("GRadioButton 1", main_widget);
auto radio1 = GRadioButton::construct("GRadioButton 1", main_widget);
(void)radio1;
auto* radio2 = new GRadioButton("GRadioButton 2", main_widget);
auto radio2 = GRadioButton::construct("GRadioButton 2", main_widget);
radio2->set_enabled(false);
auto* button1 = new GButton("GButton 1", main_widget);