Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sipify QgsExpressionContext, QgsFeatureRequest, QgsOptionalExpression
  • Loading branch information
3nids committed May 17, 2017
1 parent afc9788 commit 8231d75
Show file tree
Hide file tree
Showing 30 changed files with 1,382 additions and 852 deletions.
3 changes: 0 additions & 3 deletions python/auto_sip.blacklist
@@ -1,9 +1,6 @@
core/conversions.sip
core/qgsexception.sip
core/qgis.sip
core/qgsexpressioncontext.sip
core/qgsfeaturerequest.sip
core/qgsoptionalexpression.sip
core/qgspaintenginehack.sip
core/qgspainting.sip
core/qgspallabeling.sip
Expand Down
3 changes: 0 additions & 3 deletions python/core/geometry/qgsabstractgeometry.sip
Expand Up @@ -498,9 +498,6 @@ struct QgsVertexId
%End

bool operator==( QgsVertexId other ) const;
%Docstring
:rtype: bool
%End
bool operator!=( QgsVertexId other ) const;
%Docstring
:rtype: bool
Expand Down
3 changes: 0 additions & 3 deletions python/core/geometry/qgscurve.sip
Expand Up @@ -24,9 +24,6 @@ class QgsCurve: QgsAbstractGeometry
QgsCurve();

virtual bool operator==( const QgsCurve &other ) const = 0;
%Docstring
:rtype: bool
%End
virtual bool operator!=( const QgsCurve &other ) const = 0;
%Docstring
:rtype: bool
Expand Down
3 changes: 0 additions & 3 deletions python/core/geometry/qgspointv2.sip
Expand Up @@ -62,9 +62,6 @@ class QgsPointV2: QgsAbstractGeometry
%End

bool operator==( const QgsPointV2 &pt ) const;
%Docstring
:rtype: bool
%End
bool operator!=( const QgsPointV2 &pt ) const;
%Docstring
:rtype: bool
Expand Down
3 changes: 0 additions & 3 deletions python/core/geometry/qgspolygon.sip
Expand Up @@ -23,9 +23,6 @@ class QgsPolygonV2: QgsCurvePolygon
QgsPolygonV2();

bool operator==( const QgsPolygonV2 &other ) const;
%Docstring
:rtype: bool
%End
bool operator!=( const QgsPolygonV2 &other ) const;
%Docstring
:rtype: bool
Expand Down
5 changes: 0 additions & 5 deletions python/core/geometry/qgsrectangle.sip
Expand Up @@ -258,11 +258,6 @@ Copy constructor
%End

bool operator==( const QgsRectangle &r1 ) const;
%Docstring
Comparison operator
:return: True if rectangles are equal
:rtype: bool
%End

bool operator!=( const QgsRectangle &r1 ) const;
%Docstring
Expand Down
3 changes: 0 additions & 3 deletions python/core/geometry/qgstriangle.sip
Expand Up @@ -50,9 +50,6 @@ class QgsTriangle : QgsPolygonV2
%End

bool operator==( const QgsTriangle &other ) const;
%Docstring
:rtype: bool
%End
bool operator!=( const QgsTriangle &other ) const;
%Docstring
:rtype: bool
Expand Down
4 changes: 0 additions & 4 deletions python/core/qgsactionscope.sip
Expand Up @@ -52,10 +52,6 @@ class QgsActionScope
%End

bool operator==( const QgsActionScope &other ) const;
%Docstring
Compares two action scopes
:rtype: bool
%End

QgsExpressionContextScope expressionContextScope() const;
%Docstring
Expand Down
3 changes: 0 additions & 3 deletions python/core/qgscolorramp.sip
Expand Up @@ -113,9 +113,6 @@ Gradient color at stop
%End

bool operator==( const QgsGradientStop &other ) const;
%Docstring
:rtype: bool
%End
};

typedef QList<QgsGradientStop> QgsGradientStopsList;
Expand Down
6 changes: 0 additions & 6 deletions python/core/qgscoordinatereferencesystem.sip
Expand Up @@ -463,12 +463,6 @@ Returns whether this CRS is correctly initialized and usable
%End

bool operator==( const QgsCoordinateReferenceSystem &srs ) const;
%Docstring
Overloaded == operator used to compare to CRS's.

Internally it will use authid() for comparison.
:rtype: bool
%End

bool operator!=( const QgsCoordinateReferenceSystem &srs ) const;
%Docstring
Expand Down
3 changes: 0 additions & 3 deletions python/core/qgseditformconfig.sip
Expand Up @@ -68,9 +68,6 @@ class QgsEditFormConfig


bool operator==( const QgsEditFormConfig &o );
%Docstring
:rtype: bool
%End

void addTab( QgsAttributeEditorElement *data /Transfer/ );
%Docstring
Expand Down
13 changes: 0 additions & 13 deletions python/core/qgsexpression.sip
Expand Up @@ -108,13 +108,6 @@ Implicit sharing was added in 2.14
~QgsExpression();

bool operator==( const QgsExpression &other ) const;
%Docstring
Compares two expressions. The operator returns true
if the expression string is equal.

.. versionadded:: 3.0
:rtype: bool
%End

bool isValid() const;
%Docstring
Expand Down Expand Up @@ -456,9 +449,6 @@ Returns the default value for the parameter.
%End

bool operator==( const QgsExpression::Parameter &other ) const;
%Docstring
:rtype: bool
%End

};

Expand Down Expand Up @@ -658,9 +648,6 @@ The help text for the function.
%End

bool operator==( const QgsExpression::Function &other ) const;
%Docstring
:rtype: bool
%End

virtual bool handlesNull() const;
%Docstring
Expand Down

0 comments on commit 8231d75

Please sign in to comment.