diff options
author | Hüseyin ASLITÜRK <asliturk@hotmail.com> | 2020-05-20 02:17:21 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-20 13:54:10 +0200 |
commit | 63539d655ce0ca69d8a473fb5aad5613436af7b2 (patch) | |
tree | 10a61e0960419b1d7ee3316cef21e32362855fc7 /Demos/WidgetGallery | |
parent | 25227ee2842b66a176b6ca8d1657eb331dda714c (diff) | |
download | serenity-63539d655ce0ca69d8a473fb5aad5613436af7b2.zip |
Demos: WidgetGallery, Add MessageBox question icon option
Diffstat (limited to 'Demos/WidgetGallery')
-rw-r--r-- | Demos/WidgetGallery/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index 90f38f39f5..4b3bb89cff 100644 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -161,7 +161,7 @@ int main(int argc, char** argv) icon_group_box.set_layout<GUI::VerticalBoxLayout>(); icon_group_box.layout()->set_margins({ 5, 15, 5, 5 }); icon_group_box.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed); - icon_group_box.set_preferred_size(0, 120); + icon_group_box.set_preferred_size(0, 150); auto& radio_none = icon_group_box.add<GUI::RadioButton>("None"); radio_none.on_checked = [&](bool) { @@ -171,6 +171,10 @@ int main(int argc, char** argv) radio_information.on_checked = [&](bool) { msg_box_type = GUI::MessageBox::Type::Information; }; + auto& question_information = icon_group_box.add<GUI::RadioButton>("Question"); + question_information.on_checked = [&](bool) { + msg_box_type = GUI::MessageBox::Type::Question; + }; auto& radio_warning = icon_group_box.add<GUI::RadioButton>("Warning"); radio_warning.on_checked = [&](bool) { msg_box_type = GUI::MessageBox::Type::Warning; |