diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-02 09:48:11 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-02 15:09:48 +0100 |
commit | d67da8c1015c923d799409fee9bf6dd2eafc82b8 (patch) | |
tree | 554e5304a94b3b5aab8d60cca5846a1643d00175 /Demos/WidgetGallery/main.cpp | |
parent | 63364f8a5d70fbbf851c10cff4da62b1ae51177d (diff) | |
download | serenity-d67da8c1015c923d799409fee9bf6dd2eafc82b8.zip |
LibGUI: Add GHBoxLayout and GVBoxLayout convenience classes
Diffstat (limited to 'Demos/WidgetGallery/main.cpp')
-rw-r--r-- | Demos/WidgetGallery/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index b4dd1bcb95..a04a57daa9 100644 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -51,7 +51,7 @@ int main(int argc, char** argv) auto main_widget = GWidget::construct(); window->set_main_widget(main_widget); main_widget->set_fill_with_background_color(true); - main_widget->set_layout(make<GBoxLayout>(Orientation::Vertical)); + main_widget->set_layout(make<GVBoxLayout>()); main_widget->layout()->set_margins({ 4, 4, 4, 4 }); auto checkbox1 = GCheckBox::construct("GCheckBox 1", main_widget); @@ -95,7 +95,7 @@ int main(int argc, char** argv) auto vertical_slider_container = GWidget::construct(main_widget.ptr()); vertical_slider_container->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); vertical_slider_container->set_preferred_size(0, 100); - vertical_slider_container->set_layout(make<GBoxLayout>(Orientation::Horizontal)); + vertical_slider_container->set_layout(make<GHBoxLayout>()); auto vslider1 = GSlider::construct(Orientation::Vertical, vertical_slider_container); (void)vslider1; auto vslider2 = GSlider::construct(Orientation::Vertical, vertical_slider_container); |