Qt6 Migration: BUILD_RTI guards und CMake fixes
- BUILD_RTI conditional compilation für RTI Connext DDS dependencies - Namespace fixes in core_dtc.h (Core:: → DDS::Core::) - CMakeLists.txt: BUILD_RTI option und conditional dependencies - Handler minelayer: namespace closing mit BUILD_RTI guard - Build erfolgreich mit BUILD_RTI=OFF validiert Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
This commit is contained in:
422 files changed
+1013
-599
No files matched your search
@@ -1,11 +1,30 @@
|
||||
#include "Lts/Common/LtsTimelineClassic/Event.h"
|
||||
#include "Lts/Common/LtsTimelineClassic/TestTimelineModel.h"
|
||||
|
||||
#include <QColor>
|
||||
#include <QJsonObject>
|
||||
#include <QStringList>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
// Helper to create test Event with minimal parameters
|
||||
static Event* createTestEvent()
|
||||
{
|
||||
return new Event(1, // uniqueId
|
||||
1, // typeId
|
||||
0, // startTime
|
||||
1000, // endTime
|
||||
1, // playerId
|
||||
1, // partyId
|
||||
1, // equipmentId
|
||||
QStringList{"test"}, // path
|
||||
Event::drawCustomEventGraphicRect, // paintFunc
|
||||
QColor(Qt::red), // paintColor
|
||||
QJsonObject()); // detailData
|
||||
}
|
||||
|
||||
class TestTimelineModelTest : public ::testing::Test
|
||||
{
|
||||
protected:
|
||||
@@ -26,7 +45,7 @@ TEST(TestTimelineModelTest, AddTestEventIncreasesRowCount)
|
||||
TestTimelineModel model;
|
||||
int initialCount = model.rowCount();
|
||||
|
||||
Event* event = new Event();
|
||||
Event* event = createTestEvent();
|
||||
model.addTestEvent(event);
|
||||
|
||||
EXPECT_EQ(model.rowCount(), initialCount + 1);
|
||||
@@ -37,9 +56,9 @@ TEST(TestTimelineModelTest, MultipleEventsCanBeAdded)
|
||||
TestTimelineModel model;
|
||||
int initialCount = model.rowCount();
|
||||
|
||||
Event* event1 = new Event();
|
||||
Event* event2 = new Event();
|
||||
Event* event3 = new Event();
|
||||
Event* event1 = createTestEvent();
|
||||
Event* event2 = createTestEvent();
|
||||
Event* event3 = createTestEvent();
|
||||
|
||||
model.addTestEvent(event1);
|
||||
model.addTestEvent(event2);
|
||||
|
||||
Reference in new issue
Block a user