forked from qt-creator/qt-creator
introduce qmakeProperty(), use instead of versionInfo() where applicable
the idea is to encapsulate accesses to specific variables. Change-Id: Icafd2c85de6178db1a492a5dd36dde7f1925ea21 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -207,9 +207,7 @@ void Qt4Manager::updateVariable(const QByteArray &variable)
|
||||
qtv = QtSupport::QtProfileInformation::qtVersion(ProjectExplorer::ProfileManager::instance()->defaultProfile());
|
||||
|
||||
if (qtv)
|
||||
value = qtv->versionInfo().value(variable == kHostBins
|
||||
? QLatin1String("QT_HOST_BINS")
|
||||
: QLatin1String("QT_INSTALL_BINS"));
|
||||
value = qtv->qmakeProperty(variable == kHostBins ? "QT_HOST_BINS" : "QT_INSTALL_BINS");
|
||||
Core::VariableManager::instance()->insert(variable, value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user