From 63539d655ce0ca69d8a473fb5aad5613436af7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20ASLIT=C3=9CRK?= Date: Wed, 20 May 2020 02:17:21 +0300 Subject: Demos: WidgetGallery, Add MessageBox question icon option --- Demos/WidgetGallery/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Demos/WidgetGallery') 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(); 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("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("Question"); + question_information.on_checked = [&](bool) { + msg_box_type = GUI::MessageBox::Type::Question; + }; auto& radio_warning = icon_group_box.add("Warning"); radio_warning.on_checked = [&](bool) { msg_box_type = GUI::MessageBox::Type::Warning; -- cgit v1.2.3