Skip to content

Commit

Permalink
Profiler: Make the timeline resizable
Browse files Browse the repository at this point in the history
This just moves the timeline and the tab widget into
a horizontal splitter to make them resizable.
  • Loading branch information
gunnarbeutner authored and linusg committed May 7, 2021
1 parent a2f919c commit b25eba1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Userland/DevTools/Profiler/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down

0 comments on commit b25eba1

Please sign in to comment.