DebuggingHelpers: Check for Qt version instead checking private files

The location private includes might still change with 4.7.1 . Better
check the qt version string.

Reviewed-by: Lasse Holmstedt
This commit is contained in:
Kai Koehne
2010-09-29 16:40:13 +02:00
parent a9514a3882
commit 88a36fe34c
7 changed files with 40 additions and 10 deletions

View File

@@ -1770,7 +1770,7 @@ QString QtVersion::buildDebuggingHelperLibrary(QFutureInterface<void> &future)
}
future.setProgressValue(2);
if (QmlDumpTool::canBuild(qtInstallHeaders)) {
if (QmlDumpTool::canBuild(this)) {
QString toolDirectory = QmlDumpTool::copy(qtInstallData, &output);
if (!toolDirectory.isEmpty()) {
output += QmlDumpTool::build(toolDirectory, tc->makeCommand(),
@@ -1782,7 +1782,7 @@ QString QtVersion::buildDebuggingHelperLibrary(QFutureInterface<void> &future)
}
future.setProgressValue(3);
if (QmlObserverTool::canBuild(qtInstallHeaders)) {
if (QmlObserverTool::canBuild(this)) {
QString toolDirectory = QmlObserverTool::copy(qtInstallData, &output);
if (!toolDirectory.isEmpty()) {
output += QmlObserverTool::build(toolDirectory, tc->makeCommand(),