1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 17:28:11 +00:00

Profiler: Make the timeline resizable

This just moves the timeline and the tab widget into
a horizontal splitter to make them resizable.
This commit is contained in:
Gunnar Beutner 2021-05-08 01:10:48 +02:00 committed by Linus Groh
parent a2f919c760
commit b25eba10d2

View file

@ -124,9 +124,11 @@ int main(int argc, char** argv)
timeline_view->add<TimelineTrack>(*timeline_view, *profile, process);
}
[[maybe_unused]] auto& timeline_container = main_widget.add<TimelineContainer>(*timeline_header_container, *timeline_view);
auto& main_splitter = main_widget.add<GUI::VerticalSplitter>();
auto& tab_widget = main_widget.add<GUI::TabWidget>();
[[maybe_unused]] auto& timeline_container = main_splitter.add<TimelineContainer>(*timeline_header_container, *timeline_view);
auto& tab_widget = main_splitter.add<GUI::TabWidget>();
auto& tree_tab = tab_widget.add_tab<GUI::Widget>("Call Tree");
tree_tab.set_layout<GUI::VerticalBoxLayout>();