summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-23 17:44:49 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 17:44:49 +0200
commitab336e895f1a56b43098d115195ab5747a6846d2 (patch)
treec6dce34c4a503454a9be128e2612896e141437c4 /DevTools
parent5b6c2f3bd6b109dcb243223e6a1df61d478d4fb9 (diff)
downloadserenity-ab336e895f1a56b43098d115195ab5747a6846d2.zip
LibGUI: Add a ToolBarContainer widget and put most ToolBars in one
This mimics the Explorer toolbar container from Windows 2000 and looks pretty neat! :^)
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/HackStudio/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp
index 372886a161..b22bf4f90d 100644
--- a/DevTools/HackStudio/main.cpp
+++ b/DevTools/HackStudio/main.cpp
@@ -58,6 +58,7 @@
#include <LibGUI/TextBox.h>
#include <LibGUI/TextEditor.h>
#include <LibGUI/ToolBar.h>
+#include <LibGUI/ToolBarContainer.h>
#include <LibGUI/TreeView.h>
#include <LibGUI/Widget.h>
#include <LibGUI/Window.h>
@@ -163,7 +164,8 @@ int main(int argc, char** argv)
open_project("/home/anon/js/javascript.files");
- auto& toolbar = widget.add<GUI::ToolBar>();
+ auto& toolbar_container = widget.add<GUI::ToolBarContainer>();
+ auto& toolbar = toolbar_container.add<GUI::ToolBar>();
auto selected_file_names = [&] {
Vector<String> files;