OSDN Git Service

Fix whitespace/coding style
authordt <qtc-committer@nokia.com>
Thu, 12 May 2011 10:25:25 +0000 (12:25 +0200)
committerdt <qtc-committer@nokia.com>
Thu, 12 May 2011 10:25:25 +0000 (12:25 +0200)
src/plugins/qt4projectmanager/baseqtversion.cpp
src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp
src/plugins/qt4projectmanager/qt-s60/symbianqtversion.cpp
src/plugins/qt4projectmanager/qt4project.cpp
src/plugins/qt4projectmanager/qtoptionspage.cpp
src/plugins/qt4projectmanager/qtversionmanager.cpp

index 98bffa5..c4db89c 100644 (file)
@@ -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")
index ee7adcd..474cd64 100644 (file)
@@ -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()));
index 10f2f74..571398f 100644 (file)
@@ -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;
 }
index 8c4b216..977b4a7 100644 (file)
@@ -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)
index c152ec8..15eaa75 100644 (file)
@@ -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();
index 7a31e95..a81ce5c 100644 (file)
@@ -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;