Skip to content

Commit 41dc9d1

Browse files
committed
SIP_SKIP QgsExpression::cloneTo
1 parent 3d43f63 commit 41dc9d1

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

python/core/qgsexpression.sip

-9
Original file line numberDiff line numberDiff line change
@@ -924,15 +924,6 @@ return index of the function in Functions array
924924

925925
protected:
926926

927-
void cloneTo( QgsExpression::Node *target ) const;
928-
%Docstring
929-
Needs to be called by all subclasses as part of their clone() implementation.
930-
931-
.. note::
932-
933-
Not available in python bindings
934-
.. versionadded:: 3.0
935-
%End
936927

937928
private:
938929
virtual bool prepareNode( QgsExpression *parent, const QgsExpressionContext *context ) = 0 ;

src/core/qgsexpression.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -1036,12 +1036,15 @@ class CORE_EXPORT QgsExpression
10361036
protected:
10371037

10381038
/**
1039+
* Copies the members of this node to the node provided in \a target.
10391040
* Needs to be called by all subclasses as part of their clone() implementation.
10401041
*
1041-
* \note Not available in python bindings
1042+
* \note Not available in python bindings, QgsExpression::Node is not
1043+
* going to be subclassed from python. If that's what you are looking
1044+
* for, look into writing a custom python expression function.
10421045
* \since QGIS 3.0
10431046
*/
1044-
void cloneTo( QgsExpression::Node *target ) const;
1047+
void cloneTo( QgsExpression::Node *target ) const SIP_SKIP;
10451048

10461049
private:
10471050

0 commit comments

Comments
 (0)