From ab336e895f1a56b43098d115195ab5747a6846d2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 23 Apr 2020 17:44:49 +0200 Subject: LibGUI: Add a ToolBarContainer widget and put most ToolBars in one This mimics the Explorer toolbar container from Windows 2000 and looks pretty neat! :^) --- Applications/QuickShow/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Applications/QuickShow') diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp index a60421e319..dd234ee14e 100644 --- a/Applications/QuickShow/main.cpp +++ b/Applications/QuickShow/main.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -71,7 +72,8 @@ int main(int argc, char** argv) root_widget.set_layout(); root_widget.layout()->set_spacing(0); - auto& main_toolbar = root_widget.add(); + auto& toolbar_container = root_widget.add(); + auto& main_toolbar = toolbar_container.add(); auto& widget = root_widget.add(); widget.on_scale_change = [&](int scale) { -- cgit v1.2.3