summaryrefslogtreecommitdiff
path: root/DevTools/ProfileViewer
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-12 10:57:44 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-12 10:57:44 +0200
commitc596ef3c0e167d81c9a0d637ecf6a430697a01b2 (patch)
tree1bf7df13edddd873514b42ab235c9cc62e2c9e2f /DevTools/ProfileViewer
parent2d699cd5dac48dcdd4318edeb2a27c9a10770742 (diff)
downloadserenity-c596ef3c0e167d81c9a0d637ecf6a430697a01b2.zip
ProfileViewer: Put the tree and disasembly views in a vertical splitter
Diffstat (limited to 'DevTools/ProfileViewer')
-rw-r--r--DevTools/ProfileViewer/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/DevTools/ProfileViewer/main.cpp b/DevTools/ProfileViewer/main.cpp
index a8625ba886..c4da70db9d 100644
--- a/DevTools/ProfileViewer/main.cpp
+++ b/DevTools/ProfileViewer/main.cpp
@@ -32,6 +32,7 @@
#include <LibGUI/Menu.h>
#include <LibGUI/MenuBar.h>
#include <LibGUI/Model.h>
+#include <LibGUI/Splitter.h>
#include <LibGUI/TableView.h>
#include <LibGUI/TreeView.h>
#include <LibGUI/Window.h>
@@ -64,15 +65,14 @@ int main(int argc, char** argv)
main_widget.add<ProfileTimelineWidget>(*profile);
- auto& bottom_container = main_widget.add<GUI::Widget>();
- bottom_container.set_layout<GUI::VerticalBoxLayout>();
+ auto& bottom_splitter = main_widget.add<GUI::VerticalSplitter>();
- auto& tree_view = bottom_container.add<GUI::TreeView>();
+ auto& tree_view = bottom_splitter.add<GUI::TreeView>();
tree_view.set_headers_visible(true);
tree_view.set_size_columns_to_fit_content(true);
tree_view.set_model(profile->model());
- auto& disassembly_view = bottom_container.add<GUI::TableView>();
+ auto& disassembly_view = bottom_splitter.add<GUI::TableView>();
disassembly_view.set_size_columns_to_fit_content(true);
tree_view.on_selection = [&](auto& index) {