18#ifndef MOTIV_INFORMATIONDOCKELEMENTBASESTRATEGY_HPP
19#define MOTIV_INFORMATIONDOCKELEMENTBASESTRATEGY_HPP
21#include "InformationDockElementStrategy.hpp"
22#include "src/ui/widgets/TimeUnitLabel.hpp"
33template<
class T>
requires std::is_base_of_v<TimedElement, T>
39 static QString
tr(
const char *s,
const char *c =
nullptr,
int n = -1) {
40 return QObject::tr(s, c, n);
58 void setup(QFormLayout *layout)
override;
69 virtual void updateView(QFormLayout *layout, T *element);
79 std::string
title()
override;
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.