Files
qt5-legatus-legacy/Lts/Plugins/Timeline/Gui/EventTimeline/tln_abstract_event_item.cpp
T
2026-08-13 18:33:10 +02:00

24 lines
690 B
C++
Executable File

#include "tln_abstract_event_item.h"
#include "tln_abstract_event_factory.h"
namespace Timeline
{
int AbstractEventItem::s_defaultWidth = 12;
int AbstractEventItem::s_defaultHeight = 18;
AbstractEventItem::AbstractEventItem(
AbstractEventFactory *factory, qint64 startTime, int duration, const QJsonObject &properties, const QColor &color, EventType type,const LtsUtils::QPoint3D &position
)
: LtsTimeline::Item(startTime, duration < -1 ? 0 : duration, color, false) // NOTE: database partially has negative durations, prevent mad mathematical failures here
, m_factory(factory)
, m_position(position)
, m_properties(properties)
, m_type(type)
{}
} // namespace Timeline