Skip to content
Permalink
Browse files

Expose QgsFeatures::attribute for QML

by setting Q_INVOKABLE
  • Loading branch information
signedav authored and nyalldawson committed Sep 3, 2018
1 parent 828061b commit 085fd247d63b10003d34eb4242388da01452e766
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsfeature.h
@@ -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

0 comments on commit 085fd24

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