Skip to content
Permalink
Browse files

make customProperty INVOKABLE

  • Loading branch information
signedav authored and nyalldawson committed Jan 29, 2020
1 parent c9fa1ab commit 5f295fc06ca828b16063700c5d572a809c984ce8
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsmaplayer.h
@@ -592,20 +592,20 @@ class CORE_EXPORT QgsMapLayer : public QObject
* \see customProperty()
* \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.
* \see customProperty()
* \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.
* \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.

0 comments on commit 5f295fc

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