Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SIP_SKIP QgsExpression::cloneTo
  • Loading branch information
m-kuhn committed May 4, 2017
1 parent 3d43f63 commit 41dc9d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 0 additions & 9 deletions python/core/qgsexpression.sip
Expand Up @@ -924,15 +924,6 @@ return index of the function in Functions array

protected:

void cloneTo( QgsExpression::Node *target ) const;
%Docstring
Needs to be called by all subclasses as part of their clone() implementation.

.. note::

Not available in python bindings
.. versionadded:: 3.0
%End

private:
virtual bool prepareNode( QgsExpression *parent, const QgsExpressionContext *context ) = 0 ;
Expand Down
7 changes: 5 additions & 2 deletions src/core/qgsexpression.h
Expand Up @@ -1036,12 +1036,15 @@ class CORE_EXPORT QgsExpression
protected:

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

private:

Expand Down

0 comments on commit 41dc9d1

Please sign in to comment.