diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-08-04 15:56:26 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-08-04 20:59:28 +0200 |
commit | f50952f17a3632d0a55876826391f03c79cb171b (patch) | |
tree | 59a6cf6536afb62f9e83634159c5b86c87e4a117 /src | |
parent | a89bee6dab8026640ee5e5e178f5b91c19802575 (diff) | |
download | qt-creator-f50952f17a3632d0a55876826391f03c79cb171b.tar.gz |
complain about querying non-existing properties
... except where it is expected
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/proparser/profileevaluator.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index 1bbab340bc..e76a01d3f4 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -168,7 +168,7 @@ public: QStringList values(const QString &variableName, const ProFile *pro) const; QStringList values(const QString &variableName, const QHash<QString, QStringList> &place, const ProFile *pro) const; - QString propertyValue(const QString &val) const; + QString propertyValue(const QString &val, bool complain = true) const; QStringList split_value_list(const QString &vals, bool do_semicolon = false); QStringList split_arg_list(const QString ¶ms); @@ -1199,7 +1199,7 @@ QStringList ProFileEvaluator::Private::qmakeFeaturePaths() const foreach (const QString &f, QString::fromLocal8Bit(mkspec_path).split(m_option->dirlist_sep)) feature_roots += QDir::cleanPath(f); - feature_roots += propertyValue(QLatin1String("QMAKEFEATURES")).split( + feature_roots += propertyValue(QLatin1String("QMAKEFEATURES"), false).split( m_option->dirlist_sep, QString::SkipEmptyParts); if (!m_option->cachefile.isEmpty()) { @@ -1250,7 +1250,7 @@ QStringList ProFileEvaluator::Private::qmakeFeaturePaths() const return feature_roots; } -QString ProFileEvaluator::Private::propertyValue(const QString &name) const +QString ProFileEvaluator::Private::propertyValue(const QString &name, bool complain) const { if (m_properties.contains(name)) return m_properties.value(name); @@ -1258,6 +1258,8 @@ QString ProFileEvaluator::Private::propertyValue(const QString &name) const return qmakeMkspecPaths().join(m_option->dirlist_sep); if (name == QLatin1String("QMAKE_VERSION")) return QLatin1String("1.0"); //### FIXME + if (complain) + q->logMessage(format("Querying unknown property %1").arg(name)); return QString(); } |