summaryrefslogtreecommitdiff
path: root/Games/Minesweeper
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-02 09:48:11 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-02 15:09:48 +0100
commitd67da8c1015c923d799409fee9bf6dd2eafc82b8 (patch)
tree554e5304a94b3b5aab8d60cca5846a1643d00175 /Games/Minesweeper
parent63364f8a5d70fbbf851c10cff4da62b1ae51177d (diff)
downloadserenity-d67da8c1015c923d799409fee9bf6dd2eafc82b8.zip
LibGUI: Add GHBoxLayout and GVBoxLayout convenience classes
Diffstat (limited to 'Games/Minesweeper')
-rw-r--r--Games/Minesweeper/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp
index 50c1acfc18..1a1dd29b5f 100644
--- a/Games/Minesweeper/main.cpp
+++ b/Games/Minesweeper/main.cpp
@@ -60,14 +60,14 @@ int main(int argc, char** argv)
auto widget = GWidget::construct();
window->set_main_widget(widget);
- widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
+ widget->set_layout(make<GVBoxLayout>());
widget->layout()->set_spacing(0);
auto container = GWidget::construct(widget.ptr());
container->set_fill_with_background_color(true);
container->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
container->set_preferred_size(0, 36);
- container->set_layout(make<GBoxLayout>(Orientation::Horizontal));
+ container->set_layout(make<GHBoxLayout>());
auto flag_icon_label = GLabel::construct(container);
flag_icon_label->set_icon(GraphicsBitmap::load_from_file("/res/icons/minesweeper/flag.png"));
auto flag_label = GLabel::construct(container);