From 88eb3c616d6e9eb49158f4b33d7e856742e536be Mon Sep 17 00:00:00 2001 From: Alexander Lenhardt Date: Wed, 16 May 2012 11:22:47 +0200 Subject: let value() also query the Settings object if a value can not be found in the m_vars hash, value() will query the Settings object first before returning the default value. This allows to specify arbitrary tags to be defined in e.g. config.xml which can later be accessed by installationscripts. Change-Id: I881ff961e3647fa32a0219bbfc8bbb89935ff3d4 Reviewed-by: Karsten Heimrich --- src/libs/installer/settings.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/installer/settings.h') diff --git a/src/libs/installer/settings.h b/src/libs/installer/settings.h index d8864b8ce..ad7ad9e1f 100644 --- a/src/libs/installer/settings.h +++ b/src/libs/installer/settings.h @@ -115,6 +115,7 @@ public: QStringList certificateFiles() const; bool allowNonAsciiCharacters() const; + bool containsValue(const QString &key) const; QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const; QVariantList values(const QString &key, const QVariantList &defaultValue = QVariantList()) const; -- cgit v1.2.3