Commit 8eabfcbb authored by Christian Kandeler's avatar Christian Kandeler Committed by Thomas Hartmann
Browse files

QMLDesigner: Replace compile-time check with run-time version.



We try to compile as much code as possible on all platforms, and that
particular piece does not have platform-specific compile-time
dependencies.

Change-Id: Ic78e6bdef24df6a7463f49979cdd8e2b8611c1b7
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 591fd56e
...@@ -80,12 +80,10 @@ ...@@ -80,12 +80,10 @@
namespace { namespace {
static QLatin1String qmlPuppetApplicationDirectoryForTests() static QLatin1String qmlPuppetApplicationDirectoryForTests()
{ {
#ifdef Q_OS_WIN if (Utils::HostOsInfo::isWindowsHost())
//one more - debug/release dir //one more - debug/release dir
return QLatin1String("/../../../../../../bin/"); return QLatin1String("/../../../../../../bin/");
#else
return QLatin1String("/../../../../../bin/"); return QLatin1String("/../../../../../bin/");
#endif
} }
} //namespace } //namespace
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment