History

Added method to detect OS type. Needed for testing.

NissimHadar committed 8 years ago

Commit d8517201 parent ebc37612 files · +16 −0Browse files

Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/TestScriptingInterface.cpp+10−0
@@ -198,4 +198,14 @@ void TestScriptingInterface::setOtherAvatarsReplicaCount(int count) { · 197 unmodified lines
198 198
199int TestScriptingInterface::getOtherAvatarsReplicaCount() {199int TestScriptingInterface::getOtherAvatarsReplicaCount() {
200 return qApp->getOtherAvatarsReplicaCount();200 return qApp->getOtherAvatarsReplicaCount();
201}
202
203QString TestScriptingInterface::getOperatingSystemType() {
204#ifdef Q_OS_WIN
205 return "WINDOWS";
206#elif #defined Q_MAC_OS
207 return "MACOS";
208#else
209 return "UNKNOWN";
210#endif
201}211}