Expose QgsFeatures::attribute for QML

by setting Q_INVOKABLE
This commit is contained in:
signedav 2018-09-03 11:32:55 +02:00 committed by Nyall Dawson
parent 828061b709
commit 085fd247d6

View File

@ -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