Skip to content


add missing doc
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 4, 2018
1 parent 1e1d53f commit 7858b4c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/qgsxmlutils.h
Expand Up @@ -79,6 +79,15 @@ class CORE_EXPORT QgsXmlUtils
static QVariant readVariant( const QDomElement &element );

* Read a flag value from an attribute of the element.
* \param element the element to read the attribute from
* \param attributeName the attribute name
* \param defaultValue the default value as a flag
* \note The flag value is a text as returned by \see QMetaEnum::valueToKeys.
* The flag must have been declared with Q_ENUM macro.
* \since QGIS 3.4
template<class T> static T readFlagAttribute( const QDomElement &element, const QString &attributeName, T defaultValue ) SIP_SKIP
T value = defaultValue;
Expand Down

0 comments on commit 7858b4c

Please sign in to comment.