Commit b4d38705 authored by dt's avatar dt
Browse files

Fix whitespace/coding style

parent 8e171e0b
...@@ -259,7 +259,7 @@ QVariantMap BaseQtVersion::toMap() const ...@@ -259,7 +259,7 @@ QVariantMap BaseQtVersion::toMap() const
bool BaseQtVersion::isValid() const bool BaseQtVersion::isValid() const
{ {
if(uniqueId() == -1 || displayName().isEmpty()) if (uniqueId() == -1 || displayName().isEmpty())
return false; return false;
updateVersionInfo(); updateVersionInfo();
updateMkspec(); updateMkspec();
...@@ -575,7 +575,7 @@ void BaseQtVersion::parseMkSpec(ProFileEvaluator *evaluator) const ...@@ -575,7 +575,7 @@ void BaseQtVersion::parseMkSpec(ProFileEvaluator *evaluator) const
{ {
QStringList configValues = evaluator->values("CONFIG"); QStringList configValues = evaluator->values("CONFIG");
m_defaultConfigIsDebugAndRelease = false; m_defaultConfigIsDebugAndRelease = false;
foreach(const QString &value, configValues) { foreach (const QString &value, configValues) {
if (value == "debug") if (value == "debug")
m_defaultConfigIsDebug = true; m_defaultConfigIsDebug = true;
else if (value == "release") else if (value == "release")
......
...@@ -204,7 +204,7 @@ ProjectExplorer::Target *Qt4SymbianTargetFactory::create(ProjectExplorer::Projec ...@@ -204,7 +204,7 @@ ProjectExplorer::Target *Qt4SymbianTargetFactory::create(ProjectExplorer::Projec
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString())); infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
infos.append(BuildConfigurationInfo(qtVersion, config ^ BaseQtVersion::DebugBuild, QString(), QString())); infos.append(BuildConfigurationInfo(qtVersion, config ^ BaseQtVersion::DebugBuild, QString(), QString()));
} else { } else {
if(config & BaseQtVersion::DebugBuild) if (config & BaseQtVersion::DebugBuild)
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString())); infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
else else
infos.append(BuildConfigurationInfo(qtVersion, config ^ BaseQtVersion::DebugBuild, QString(), QString())); infos.append(BuildConfigurationInfo(qtVersion, config ^ BaseQtVersion::DebugBuild, QString(), QString()));
......
...@@ -93,7 +93,7 @@ bool SymbianQtVersion::isValid() const ...@@ -93,7 +93,7 @@ bool SymbianQtVersion::isValid() const
return false; return false;
if (!m_validSystemRoot) if (!m_validSystemRoot)
return false; 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 false;
return true; return true;
} }
......
...@@ -445,7 +445,7 @@ void Qt4Project::updateCppCodeModel() ...@@ -445,7 +445,7 @@ void Qt4Project::updateCppCodeModel()
predefinedMacros = tc->predefinedMacros(); predefinedMacros = tc->predefinedMacros();
QList<HeaderPath> headers = tc->systemHeaderPaths(); QList<HeaderPath> headers = tc->systemHeaderPaths();
if (activeBC->qtVersion()) if (activeBC->qtVersion())
headers.append(activeBC->qtVersion()->systemHeaderPathes()); headers.append(activeBC->qtVersion()->systemHeaderPathes());
foreach (const HeaderPath &headerPath, headers) { foreach (const HeaderPath &headerPath, headers) {
if (headerPath.kind() == HeaderPath::FrameworkHeaderPath) if (headerPath.kind() == HeaderPath::FrameworkHeaderPath)
......
...@@ -128,7 +128,7 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent, QList<BaseQtVersion *> ...@@ -128,7 +128,7 @@ QtOptionsPageWidget::QtOptionsPageWidget(QWidget *parent, QList<BaseQtVersion *>
, m_configurationWidget(0) , m_configurationWidget(0)
{ {
// Initialize m_versions // Initialize m_versions
foreach(BaseQtVersion *version, versions) foreach (BaseQtVersion *version, versions)
m_versions.push_back(version->clone()); m_versions.push_back(version->clone());
QWidget *versionInfoWidget = new QWidget(); QWidget *versionInfoWidget = new QWidget();
......
...@@ -435,7 +435,7 @@ QList<BaseQtVersion *> QtVersionManager::versions() const ...@@ -435,7 +435,7 @@ QList<BaseQtVersion *> QtVersionManager::versions() const
QList<BaseQtVersion *> QtVersionManager::validVersions() const QList<BaseQtVersion *> QtVersionManager::validVersions() const
{ {
QList<BaseQtVersion *> results; QList<BaseQtVersion *> results;
foreach(BaseQtVersion *v, m_versions) { foreach (BaseQtVersion *v, m_versions) {
if (v->isValid()) if (v->isValid())
results.append(v); results.append(v);
} }
...@@ -585,7 +585,7 @@ QString QtVersionManager::findQMakeBinaryFromMakefile(const QString &makefile) ...@@ -585,7 +585,7 @@ QString QtVersionManager::findQMakeBinaryFromMakefile(const QString &makefile)
BaseQtVersion *QtVersionManager::qtVersionForQMakeBinary(const QString &qmakePath) BaseQtVersion *QtVersionManager::qtVersionForQMakeBinary(const QString &qmakePath)
{ {
foreach(BaseQtVersion *version, versions()) { foreach (BaseQtVersion *version, versions()) {
if (version->qmakeCommand() == qmakePath) { if (version->qmakeCommand() == qmakePath) {
return version; return version;
break; break;
......
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