From 74786f2d5aef74b38140d11139c6c38cad2eae1f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 30 Mar 2019 13:57:34 +0100 Subject: IRCClient: Use GSplitter in the window layouts. This really brings the UI to life in a pleasant way. It's a bit annoying that you can't initiate a resize by clicking on the shading of a splitter resizer that actually belongs to the neighboring GFrame, I'm not sure how to fix that yet but I'll think of something. --- Applications/IRCClient/IRCWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Applications/IRCClient/IRCWindow.cpp') diff --git a/Applications/IRCClient/IRCWindow.cpp b/Applications/IRCClient/IRCWindow.cpp index 2c7d6cb5d1..8f10815fb2 100644 --- a/Applications/IRCClient/IRCWindow.cpp +++ b/Applications/IRCClient/IRCWindow.cpp @@ -7,6 +7,7 @@ #include #include #include +#include IRCWindow::IRCWindow(IRCClient& client, void* owner, Type type, const String& name, GWidget* parent) : GWidget(parent) @@ -18,8 +19,7 @@ IRCWindow::IRCWindow(IRCClient& client, void* owner, Type type, const String& na set_layout(make(Orientation::Vertical)); // Make a container for the log buffer view + (optional) member list. - GWidget* container = new GWidget(this); - container->set_layout(make(Orientation::Horizontal)); + auto* container = new GSplitter(Orientation::Horizontal, this); m_table_view = new GTableView(container); m_table_view->set_headers_visible(false); -- cgit v1.2.3