Profiler: Migrate mouse events to TimelineView

This change allows for continuous mouse events when hovering the
layout spaces between tracks.
This commit is contained in:
Carlos César Neves Enumo 2021-05-08 03:27:13 -03:00 committed by Andreas Kling
commit 325d9445fd
Notes: sideshowbarker 2024-07-18 18:33:32 +09:00
5 changed files with 76 additions and 57 deletions

View file

@ -96,7 +96,7 @@ int main(int argc, char** argv)
timeline_header_container->set_fill_with_background_color(true);
timeline_header_container->set_shrink_to_fit(true);
auto timeline_view = TimelineView::construct();
auto timeline_view = TimelineView::construct(*profile);
for (auto& process : profile->processes()) {
bool matching_event_found = false;
for (auto& event : profile->events()) {