1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Profiler: Add TimelineView widget and make the timeline cursor global

There's no longer a cursor in each process timeline, instead the parent
widget keeps track of it (along with the selection) and it all moves
in sync.
This commit is contained in:
Andreas Kling 2021-05-06 18:59:51 +02:00
parent 84c4c2d884
commit abc3ad01b2
6 changed files with 103 additions and 28 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "TimelineView.h"
#include <LibGUI/BoxLayout.h>
namespace Profiler {
TimelineView::TimelineView()
{
set_layout<GUI::VerticalBoxLayout>();
set_shrink_to_fit(true);
}
TimelineView::~TimelineView()
{
}
}