Commit 96ba1dd4 authored by Tobias Hunger's avatar Tobias Hunger

Use proper way of looking for system Qt

Change-Id: I770a15c653c6b25d10a919f6c6dbefdb79c17d89
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent f69da8e7
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "qtversionmanager.h" #include "qtversionmanager.h"
#include "qtparser.h" #include "qtparser.h"
#include <utils/environment.h> #include <utils/buildablehelperlibrary.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
namespace QtSupport { namespace QtSupport {
...@@ -66,8 +66,7 @@ QVariant QtKitInformation::defaultValue(ProjectExplorer::Kit *k) const ...@@ -66,8 +66,7 @@ QVariant QtKitInformation::defaultValue(ProjectExplorer::Kit *k) const
QtVersionManager *mgr = QtVersionManager::instance(); QtVersionManager *mgr = QtVersionManager::instance();
// find "Qt in PATH": // find "Qt in PATH":
Utils::FileName qmake = Utils::FileName::fromString(Utils::Environment::systemEnvironment() Utils::FileName qmake = Utils::BuildableHelperLibrary::findSystemQt(Utils::Environment::systemEnvironment());
.searchInPath(QLatin1String("qmake")));
if (qmake.isEmpty()) if (qmake.isEmpty())
return -1; return -1;
......
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