aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/api/projectdata.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2016-12-23 13:49:41 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2016-12-23 15:50:39 +0000
commitd518178df885d2c58bf2ff5a1f45f1af8fd04ae4 (patch)
tree8b9eeb427fdfce106837a77dc000f29b528d2914 /src/lib/corelib/api/projectdata.cpp
parentd25dc92af34d994e4f58f1a3edae7d5b856b49ff (diff)
Add PropertyMapInternal::moduleProperty
Add a new convenience method PropertyMapInternal::moduleProperty to access module properties without invoking the PropertyFinder and use it where applicable. Change-Id: Ie573c71516b25ed3159d6c86769baa6b058c0956 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/api/projectdata.cpp')
-rw-r--r--src/lib/corelib/api/projectdata.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/corelib/api/projectdata.cpp b/src/lib/corelib/api/projectdata.cpp
index 4363a0ccf..94ae87c7a 100644
--- a/src/lib/corelib/api/projectdata.cpp
+++ b/src/lib/corelib/api/projectdata.cpp
@@ -43,7 +43,6 @@
#include <language/propertymapinternal.h>
#include <tools/fileinfo.h>
#include <tools/jsliterals.h>
-#include <tools/propertyfinder.h>
#include <tools/qbsassert.h>
#include <QDir>
@@ -818,8 +817,7 @@ QVariant PropertyMap::getProperty(const QString &name) const
QStringList PropertyMap::getModulePropertiesAsStringList(const QString &moduleName,
const QString &propertyName) const
{
- const QVariantList &vl = Internal::PropertyFinder().propertyValue(d->m_map->value(), moduleName,
- propertyName).toList();
+ const QVariantList &vl = d->m_map->moduleProperty(moduleName, propertyName).toList();
QStringList sl;
foreach (const QVariant &v, vl) {
QBS_ASSERT(v.canConvert<QString>(), continue);
@@ -834,7 +832,7 @@ QStringList PropertyMap::getModulePropertiesAsStringList(const QString &moduleNa
QVariant PropertyMap::getModuleProperty(const QString &moduleName,
const QString &propertyName) const
{
- return Internal::PropertyFinder().propertyValue(d->m_map->value(), moduleName, propertyName);
+ return d->m_map->moduleProperty(moduleName, propertyName);
}
static QString mapToString(const QVariantMap &map, const QString &prefix)