Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+46
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* test-case model to test timeline
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Mike Wille, SLSE, 2015-09-23
|
||||
*/
|
||||
|
||||
|
||||
#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) // for clicking an event
|
||||
{
|
||||
(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