Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#include "tln_participant_track.h"
|
||||
|
||||
|
||||
namespace Timeline
|
||||
{
|
||||
|
||||
ParticipantTrack::ParticipantTrack(const QString &text, int participantId, int partyId, int equipmentNumber, int superiorId)
|
||||
: LtsTimeline::Track(text)
|
||||
//: LtsTimeline::Track(QStringLiteral("[P%1] %2").arg(participantId).arg(text))
|
||||
, m_participantId(participantId)
|
||||
, m_partyId(partyId)
|
||||
, m_equipmentNumber(equipmentNumber)
|
||||
, m_superiorId(superiorId)
|
||||
{}
|
||||
|
||||
|
||||
const QString ParticipantTrack::text() const
|
||||
{
|
||||
#ifdef LTS_DEBUG
|
||||
return QStringLiteral("[P'%1' - %2] %3").arg(m_text).arg(m_participantId).arg(m_equipmentNumber);
|
||||
#endif
|
||||
|
||||
if (!hasTracks())
|
||||
return QString::number(m_equipmentNumber);
|
||||
|
||||
return m_text;
|
||||
}
|
||||
|
||||
} // namespace Timeline
|
||||
Reference in new issue
Block a user