Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
+40
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#include "TestTimelineModel.h"
|
||||
|
||||
#include "EventGraphic.h"
|
||||
|
||||
#include <QToolTip>
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
TestTimelineModel::TestTimelineModel()
|
||||
: AbstractTimelineModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void TestTimelineModel::addTestEvent(Event *event)
|
||||
{
|
||||
AbstractTimelineModel::addEvent(event);
|
||||
}
|
||||
|
||||
void TestTimelineModel::slotEventAction(EventGraphic *eg, int actionType)
|
||||
{
|
||||
(void)actionType;
|
||||
|
||||
QString content = tr("Event count: %1").arg(QString::number(eg->eventList().count()));
|
||||
|
||||
for (int i = 0; i < eg->eventList().count(); i++)
|
||||
{
|
||||
content += QLatin1String("\r\nTime: ");
|
||||
content += QString::number(eg->eventList().at(i)->startTime());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user