forked from qt-creator/qt-creator
Fix whitespace/coding style
This commit is contained in:
@@ -259,7 +259,7 @@ QVariantMap BaseQtVersion::toMap() const
|
||||
|
||||
bool BaseQtVersion::isValid() const
|
||||
{
|
||||
if(uniqueId() == -1 || displayName().isEmpty())
|
||||
if (uniqueId() == -1 || displayName().isEmpty())
|
||||
return false;
|
||||
updateVersionInfo();
|
||||
updateMkspec();
|
||||
@@ -575,7 +575,7 @@ void BaseQtVersion::parseMkSpec(ProFileEvaluator *evaluator) const
|
||||
{
|
||||
QStringList configValues = evaluator->values("CONFIG");
|
||||
m_defaultConfigIsDebugAndRelease = false;
|
||||
foreach(const QString &value, configValues) {
|
||||
foreach (const QString &value, configValues) {
|
||||
if (value == "debug")
|
||||
m_defaultConfigIsDebug = true;
|
||||
else if (value == "release")
|
||||
|
@@ -204,7 +204,7 @@ ProjectExplorer::Target *Qt4SymbianTargetFactory::create(ProjectExplorer::Projec
|
||||
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
|
||||
infos.append(BuildConfigurationInfo(qtVersion, config ^ BaseQtVersion::DebugBuild, QString(), QString()));
|
||||
} else {
|
||||
if(config & BaseQtVersion::DebugBuild)
|
||||
if (config & BaseQtVersion::DebugBuild)
|
||||
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
|
||||
else
|
||||
infos.append(BuildConfigurationInfo(qtVersion, config ^ BaseQtVersion::DebugBuild, QString(), QString()));
|
||||
|
@@ -93,7 +93,7 @@ bool SymbianQtVersion::isValid() const
|
||||
return false;
|
||||
if (!m_validSystemRoot)
|
||||
return false;
|
||||
if(isBuildWithSymbianSbsV2() && (m_sbsV2Directory.isEmpty() || !QFileInfo(m_sbsV2Directory + QLatin1String("/sbs")).exists()))
|
||||
if (isBuildWithSymbianSbsV2() && (m_sbsV2Directory.isEmpty() || !QFileInfo(m_sbsV2Directory + QLatin1String("/sbs")).exists()))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
@@ -445,7 +445,7 @@ void Qt4Project::updateCppCodeModel()
|
||||
predefinedMacros = tc->predefinedMacros();
|
||||
|
||||
QList<HeaderPath> headers = tc->systemHeaderPaths();
|
||||
if (activeBC->qtVersion())
|
||||
if (activeBC->qtVersion())
|
||||
headers.append(activeBC->qtVersion()->systemHeaderPathes());
|
||||
foreach (const HeaderPath &headerPath, headers) {
|
||||
if (headerPath.kind() == HeaderPath::FrameworkHeaderPath)
|
||||
|
@@ -128,7 +128,7 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent, QList<BaseQtVersion *>
|
||||
, m_configurationWidget(0)
|
||||
{
|
||||
// Initialize m_versions
|
||||
foreach(BaseQtVersion *version, versions)
|
||||
foreach (BaseQtVersion *version, versions)
|
||||
m_versions.push_back(version->clone());
|
||||
|
||||
QWidget *versionInfoWidget = new QWidget();
|
||||
|
@@ -435,7 +435,7 @@ QList<BaseQtVersion *> QtVersionManager::versions() const
|
||||
QList<BaseQtVersion *> QtVersionManager::validVersions() const
|
||||
{
|
||||
QList<BaseQtVersion *> results;
|
||||
foreach(BaseQtVersion *v, m_versions) {
|
||||
foreach (BaseQtVersion *v, m_versions) {
|
||||
if (v->isValid())
|
||||
results.append(v);
|
||||
}
|
||||
@@ -585,7 +585,7 @@ QString QtVersionManager::findQMakeBinaryFromMakefile(const QString &makefile)
|
||||
|
||||
BaseQtVersion *QtVersionManager::qtVersionForQMakeBinary(const QString &qmakePath)
|
||||
{
|
||||
foreach(BaseQtVersion *version, versions()) {
|
||||
foreach (BaseQtVersion *version, versions()) {
|
||||
if (version->qmakeCommand() == qmakePath) {
|
||||
return version;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user