summaryrefslogtreecommitdiff
path: root/Demos/WidgetGallery/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-04 09:43:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-04 13:49:48 +0100
commit4697195645a4c66930761c85685f5752dc777bba (patch)
treecc77feb29541d43323a5edce70f05412ab1e8e68 /Demos/WidgetGallery/main.cpp
parent03e0ddce5237b6ad7b84724ef03039e413944f00 (diff)
downloadserenity-4697195645a4c66930761c85685f5752dc777bba.zip
LibGUI: Use set_layout<LayoutType>() in lots of client code
Diffstat (limited to 'Demos/WidgetGallery/main.cpp')
-rw-r--r--Demos/WidgetGallery/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp
index 047601e17e..d7936e437f 100644
--- a/Demos/WidgetGallery/main.cpp
+++ b/Demos/WidgetGallery/main.cpp
@@ -51,7 +51,7 @@ int main(int argc, char** argv)
auto main_widget = GUI::Widget::construct();
window->set_main_widget(main_widget);
main_widget->set_fill_with_background_color(true);
- main_widget->set_layout(make<GUI::VerticalBoxLayout>());
+ main_widget->set_layout<GUI::VerticalBoxLayout>();
main_widget->layout()->set_margins({ 4, 4, 4, 4 });
auto checkbox1 = main_widget->add<GUI::CheckBox>("GCheckBox 1");
@@ -95,7 +95,7 @@ int main(int argc, char** argv)
auto vertical_slider_container = main_widget->add<GUI::Widget>();
vertical_slider_container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
vertical_slider_container->set_preferred_size(0, 100);
- vertical_slider_container->set_layout(make<GUI::HorizontalBoxLayout>());
+ vertical_slider_container->set_layout<GUI::HorizontalBoxLayout>();
auto vslider1 = vertical_slider_container->add<GUI::VerticalSlider>();
(void)vslider1;
auto vslider2 = vertical_slider_container->add<GUI::VerticalSlider>();