diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-07-24 14:29:00 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-07-27 09:36:08 +0000 |
commit | 1a1d7d53c8e7c375e03fd7724eb2bf623166cd00 (patch) | |
tree | a390b8fbd213bcfcf83dfdcee52e2c3bae1f64d9 /src/lib/corelib/tools/profile.h | |
parent | cc43687073bd5a026d6a153c18163791ce4dfe63 (diff) |
qbs::Profile: Allow to provide additional profiles as maps
Change-Id: I5397e2c2ce5dc164c8720380a12dcc43833a66c1
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/profile.h')
-rw-r--r-- | src/lib/corelib/tools/profile.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/profile.h b/src/lib/corelib/tools/profile.h index 3f207e09e..4dd78c0ca 100644 --- a/src/lib/corelib/tools/profile.h +++ b/src/lib/corelib/tools/profile.h @@ -52,7 +52,7 @@ class Settings; class QBS_EXPORT Profile { public: - explicit Profile(const QString &name, Settings *settings); + Profile(const QString &name, Settings *settings, const QVariantMap &profiles = QVariantMap()); bool exists() const; QVariant value(const QString &key, const QVariant &defaultValue = QVariant(), @@ -88,6 +88,8 @@ private: QString m_name; Settings *m_settings; + QVariantMap m_values; + QVariantMap m_profiles; }; namespace Internal { |