18#include "InformationDockElementBaseStrategy.hpp"
19#include "src/models/Slot.hpp"
20#include "src/models/Trace.hpp"
22template<
class T>
requires std::is_base_of_v<TimedElement, T>
29 layout->addRow(tr(
"Start:"), startField);
30 layout->addRow(tr(
"End:"), endField);
31 layout->addRow(tr(
"Runtime:"), runtimeField);
34template<
class T>
requires std::is_base_of_v<TimedElement, T>
38 auto start =
static_cast<double>(element->getStartTime().count());
39 auto end =
static_cast<double>(element->getEndTime().count());
40 auto runtime =
static_cast<double>(element->getDuration().count());
42 startField->setTime(start);
43 endField->setTime(end);
44 runtimeField->setTime(runtime);
48requires std::is_base_of_v<TimedElement, T>
bool
50 T *t = applicable(element);
52 updateView(layout, t);
60 return typeid(T).name();
TimeUnitLabel constructs a QLabel from a double value that represents a time point.
A base class for all elements with a start and end time.