Skip to content
Permalink
Browse files

Fix sip __hash__ for qgsactionscope

to allow use in actionScopeRegistry. Fixes #29225
  • Loading branch information
stev-0 committed Apr 6, 2020
1 parent d2360da commit 1730815dca1270add38ad5b9a8e2dd10f14f5bf3
Showing with 18 additions and 0 deletions.
  1. +7 −0 python/core/auto_generated/qgsactionscope.sip.in
  2. +11 −0 src/core/qgsactionscope.h
@@ -36,6 +36,9 @@ form.</dd>
#include "qgsactionscope.h"
%End
public:
%TypeCode
#include <QHash>
%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

};
@@ -46,6 +46,11 @@
class CORE_EXPORT QgsActionScope
{
public:
#ifdef SIP_RUN
% TypeCode
#include <QHash>
% 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;

0 comments on commit 1730815

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