Skip to content
Permalink
Browse files

add missing doc

  • Loading branch information
3nids committed Oct 4, 2018
1 parent 1e1d53f commit 7858b4c3756ca7df180e76480fda5c082911cb1e
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/qgsxmlutils.h
@@ -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;

0 comments on commit 7858b4c

Please sign in to comment.
You can’t perform that action at this time.