diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-04 09:43:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-04 13:49:48 +0100 |
commit | 4697195645a4c66930761c85685f5752dc777bba (patch) | |
tree | cc77feb29541d43323a5edce70f05412ab1e8e68 /Applications/IRCClient | |
parent | 03e0ddce5237b6ad7b84724ef03039e413944f00 (diff) | |
download | serenity-4697195645a4c66930761c85685f5752dc777bba.zip |
LibGUI: Use set_layout<LayoutType>() in lots of client code
Diffstat (limited to 'Applications/IRCClient')
-rw-r--r-- | Applications/IRCClient/IRCAppWindow.cpp | 4 | ||||
-rw-r--r-- | Applications/IRCClient/IRCWindow.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp index 0993d3ab9a..e1ebe4d0b7 100644 --- a/Applications/IRCClient/IRCAppWindow.cpp +++ b/Applications/IRCClient/IRCAppWindow.cpp @@ -182,7 +182,7 @@ void IRCAppWindow::setup_widgets() auto widget = GUI::Widget::construct(); set_main_widget(widget); widget->set_fill_with_background_color(true); - widget->set_layout(make<GUI::VerticalBoxLayout>()); + widget->set_layout<GUI::VerticalBoxLayout>(); widget->layout()->set_spacing(0); auto toolbar = widget->add<GUI::ToolBar>(); @@ -197,7 +197,7 @@ void IRCAppWindow::setup_widgets() toolbar->add_action(*m_close_query_action); auto outer_container = widget->add<GUI::Widget>(); - outer_container->set_layout(make<GUI::VerticalBoxLayout>()); + outer_container->set_layout<GUI::VerticalBoxLayout>(); outer_container->layout()->set_margins({ 2, 0, 2, 2 }); auto horizontal_container = outer_container->add<GUI::HorizontalSplitter>(); diff --git a/Applications/IRCClient/IRCWindow.cpp b/Applications/IRCClient/IRCWindow.cpp index e151bea4af..9ad9739e5d 100644 --- a/Applications/IRCClient/IRCWindow.cpp +++ b/Applications/IRCClient/IRCWindow.cpp @@ -41,7 +41,7 @@ IRCWindow::IRCWindow(IRCClient& client, void* owner, Type type, const String& na , m_type(type) , m_name(name) { - set_layout(make<GUI::VerticalBoxLayout>()); + set_layout<GUI::VerticalBoxLayout>(); // Make a container for the log buffer view + (optional) member list. auto container = add<GUI::HorizontalSplitter>(); |