diff --git a/python/core/auto_generated/qgsactionscope.sip.in b/python/core/auto_generated/qgsactionscope.sip.in index 1c4a6439bdcd..32984bb89466 100644 --- a/python/core/auto_generated/qgsactionscope.sip.in +++ b/python/core/auto_generated/qgsactionscope.sip.in @@ -36,6 +36,9 @@ form. #include "qgsactionscope.h" %End public: +%TypeCode +#include +%End explicit QgsActionScope(); %Docstring @@ -109,6 +112,10 @@ in here, they are extracted automatically from the expressionContextScope(). Returns if this scope is valid. .. versionadded:: 3.0 +%End + long __hash__(); +%MethodCode + sipRes = qHash( *sipCpp ); %End }; diff --git a/src/core/qgsactionscope.h b/src/core/qgsactionscope.h index 473741ef877d..d5f6e2e6c304 100644 --- a/src/core/qgsactionscope.h +++ b/src/core/qgsactionscope.h @@ -46,6 +46,11 @@ class CORE_EXPORT QgsActionScope { public: +#ifdef SIP_RUN + % TypeCode +#include + % End +#endif /** * Creates a new invalid action scope. @@ -117,6 +122,12 @@ class CORE_EXPORT QgsActionScope * \since QGIS 3.0 */ bool isValid() const; +#ifdef SIP_RUN + long __hash__(); + % MethodCode + sipRes = qHash( *sipCpp ); + % End +#endif private: QString mId;