Skip to content

Commit

Permalink
Expose QgsFeatures::attribute for QML
Browse files Browse the repository at this point in the history
by setting Q_INVOKABLE
  • Loading branch information
signedav authored and nyalldawson committed Sep 3, 2018
1 parent 828061b commit 085fd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class CORE_EXPORT QgsFeature
* \see setFields
*/
#ifndef SIP_RUN
QVariant attribute( const QString &name ) const;
Q_INVOKABLE QVariant attribute( const QString &name ) const;
#else
SIP_PYOBJECT attribute( const QString &name ) const;
% MethodCode
Expand Down

0 comments on commit 085fd24

Please sign in to comment.