#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