Skip to content

Commit

Permalink
Update DemoRunner.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Dec 8, 2024
1 parent 19cf398 commit 6c806f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DemoRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "platform/PlatformAdaptor_Abstract.h"

#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_IOS)
#include "GlobalObject.h"
#include "GlobalSettings.h"
#include "geomaps/GeoMapProvider.h"
Expand Down Expand Up @@ -91,7 +91,7 @@ void DemoRunner::generateGooglePlayScreenshots()

void DemoRunner::generateScreenshotsForDevices(const QStringList &devices, bool manual)
{
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) || defined(Q_OS_IOS)
Q_ASSERT(m_engine != nullptr);

emit requestClosePages();
Expand Down Expand Up @@ -226,7 +226,7 @@ void DemoRunner::generateScreenshotsForDevices(const QStringList &devices, bool
trafficFactor1->setAlarmLevel(0);
trafficFactor1->setID(QStringLiteral("newID"));
trafficFactor1->setType(Traffic::TrafficFactor_Abstract::Aircraft);
trafficFactor1->setPositionInfo( Positioning::PositionInfo(trafficInfo) );
trafficFactor1->setPositionInfo( Positioning::PositionInfo(trafficInfo, u"DemoRunner"_s) );
trafficFactor1->setHDist( Units::Distance::fromM(1000) );
trafficFactor1->setVDist( Units::Distance::fromM(17) );
trafficSimulator->addTraffic(trafficFactor1);
Expand Down Expand Up @@ -503,7 +503,7 @@ void DemoRunner::generateManualScreenshots()
trafficFactor1->setAlarmLevel(0);
trafficFactor1->setID(QStringLiteral("newID"));
trafficFactor1->setType(Traffic::TrafficFactor_Abstract::Aircraft);
trafficFactor1->setPositionInfo( Positioning::PositionInfo(trafficInfo) );
trafficFactor1->setPositionInfo( Positioning::PositionInfo(trafficInfo, u"DemoRunner"_s) );
trafficFactor1->setHDist( Units::Distance::fromM(1000) );
trafficFactor1->setVDist( Units::Distance::fromM(17) );
trafficSimulator->addTraffic(trafficFactor1);
Expand Down

0 comments on commit 6c806f7

Please sign in to comment.