From 20767b79a4c585319f67e825236e1da02ed6d835 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Fri, 9 Oct 2009 18:25:41 +0200 Subject: [PATCH] This variable is only used on mac, so move it into the #ifdef block --- src/plugins/qt4projectmanager/qt4project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index c58793bed76..3d80b9c0f02 100644 --- a/src/plugins/qt4projectmanager/qt4project.cpp +++ b/src/plugins/qt4projectmanager/qt4project.cpp @@ -577,7 +577,6 @@ void Qt4Project::updateCodeModel() const QHash<QString, QString> versionInfo = qtVersion(activeBuildConfiguration())->versionInfo(); const QString newQtIncludePath = versionInfo.value(QLatin1String("QT_INSTALL_HEADERS")); - const QString newQtLibsPath = versionInfo.value(QLatin1String("QT_INSTALL_LIBS")); predefinedIncludePaths.append(newQtIncludePath); QDir dir(newQtIncludePath); @@ -597,6 +596,7 @@ void Qt4Project::updateCodeModel() QStringList allFrameworkPaths = predefinedFrameworkPaths; #ifdef Q_OS_MAC + const QString newQtLibsPath = versionInfo.value(QLatin1String("QT_INSTALL_LIBS")); allFrameworkPaths.append(newQtLibsPath); // put QtXXX.framework/Headers directories in include path since that qmake's behavior QDir frameworkDir(newQtLibsPath); -- GitLab