Skip to content

Commit

Permalink
make customProperty INVOKABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav authored and nyalldawson committed Jan 29, 2020
1 parent c9fa1ab commit 5f295fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsmaplayer.h
Expand Up @@ -592,20 +592,20 @@ class CORE_EXPORT QgsMapLayer : public QObject
* \see customProperty() * \see customProperty()
* \since QGIS 3.0 * \since QGIS 3.0
*/ */
QStringList customPropertyKeys() const; Q_INVOKABLE QStringList customPropertyKeys() const;


/** /**
* Set a custom property for layer. Properties are stored in a map and saved in project file. * Set a custom property for layer. Properties are stored in a map and saved in project file.
* \see customProperty() * \see customProperty()
* \see removeCustomProperty() * \see removeCustomProperty()
*/ */
void setCustomProperty( const QString &key, const QVariant &value ); Q_INVOKABLE void setCustomProperty( const QString &key, const QVariant &value );


/** /**
* Read a custom property from layer. Properties are stored in a map and saved in project file. * Read a custom property from layer. Properties are stored in a map and saved in project file.
* \see setCustomProperty() * \see setCustomProperty()
*/ */
QVariant customProperty( const QString &value, const QVariant &defaultValue = QVariant() ) const; Q_INVOKABLE QVariant customProperty( const QString &value, const QVariant &defaultValue = QVariant() ) const;


/** /**
* Set custom properties for layer. Current properties are dropped. * Set custom properties for layer. Current properties are dropped.
Expand Down

0 comments on commit 5f295fc

Please sign in to comment.