Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
run sipify
  • Loading branch information
3nids authored and nyalldawson committed Jun 18, 2020
1 parent 43b122e commit 044a05d
Show file tree
Hide file tree
Showing 28 changed files with 51 additions and 51 deletions.
Expand Up @@ -48,7 +48,7 @@ Ownership is transferred to the caller.
.. versionadded:: 3.4
%End

QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = 0 ) const;
QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = QgsGeometryCheck::Flags() ) const;
%Docstring
Returns all geometry check factories that are compatible with ``layer`` and have all of the ``flags`` set.

Expand Down
Expand Up @@ -71,7 +71,7 @@ to ``p2`` will be used (i.e. winding the other way around the circle).
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

Expand Down
Expand Up @@ -42,7 +42,7 @@ Compound curve geometry type
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgscurvepolygon.sip.in
Expand Up @@ -46,7 +46,7 @@ Curve polygon geometry type
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

Expand Down
6 changes: 3 additions & 3 deletions python/core/auto_generated/geometry/qgsgeometry.sip.in
Expand Up @@ -332,7 +332,7 @@ by :py:func:`~QgsGeometry.equals` instead.
typedef QFlags<QgsGeometry::ValidityFlag> ValidityFlags;


bool isGeosValid( QgsGeometry::ValidityFlags flags = 0 ) const;
bool isGeosValid( QgsGeometry::ValidityFlags flags = QgsGeometry::ValidityFlags() ) const;
%Docstring
Checks validity of the geometry using GEOS.

Expand Down Expand Up @@ -1537,7 +1537,7 @@ is null, a ValueError will be raised.



QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;
%Docstring
Export the geometry to WKB

Expand Down Expand Up @@ -1972,7 +1972,7 @@ The coordinates at which the error is located and should be visualized.
ValidatorGeos,
};

void validateGeometry( QVector<QgsGeometry::Error> &errors /Out/, ValidationMethod method = ValidatorQgisInternal, QgsGeometry::ValidityFlags flags = 0 ) const;
void validateGeometry( QVector<QgsGeometry::Error> &errors /Out/, ValidationMethod method = ValidatorQgisInternal, QgsGeometry::ValidityFlags flags = QgsGeometry::ValidityFlags() ) const;
%Docstring
Validates geometry and produces a list of geometry errors.
The ``method`` argument dictates which validator to utilize.
Expand Down
Expand Up @@ -154,7 +154,7 @@ An IndexError will be raised if no geometry with the specified index exists.

virtual bool fromWkt( const QString &wkt );

virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgslinestring.sip.in
Expand Up @@ -424,7 +424,7 @@ segment in the line.
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgspolygon.sip.in
Expand Up @@ -41,7 +41,7 @@ Ownership of ``exterior`` and ``rings`` is transferred to the polygon.

virtual bool fromWkb( QgsConstWkbPtr &wkb );

virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QgsPolygon *surfaceToPolygon() const /Factory/;

Expand Down
Expand Up @@ -34,7 +34,7 @@ Encapsulates settings relating to a feature source input to a processing algorit


QgsProcessingFeatureSourceDefinition( const QString &source = QString(), bool selectedFeaturesOnly = false, long long featureLimit = -1,
QgsProcessingFeatureSourceDefinition::Flags flags = 0, QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
QgsProcessingFeatureSourceDefinition::Flags flags = QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
%Docstring
Constructor for QgsProcessingFeatureSourceDefinition, accepting a static string ``source``.

Expand All @@ -50,7 +50,7 @@ the default geometry check method (as dictated by :py:class:`QgsProcessingContex
%End

QgsProcessingFeatureSourceDefinition( const QgsProperty &source, bool selectedFeaturesOnly = false, long long featureLimit = -1,
QgsProcessingFeatureSourceDefinition::Flags flags = 0, QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
QgsProcessingFeatureSourceDefinition::Flags flags = QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
%Docstring
Constructor for QgsProcessingFeatureSourceDefinition, accepting a QgsProperty source.

Expand Down
6 changes: 3 additions & 3 deletions python/core/auto_generated/qgsfeaturesink.sip.in
Expand Up @@ -40,7 +40,7 @@ An interface for objects which accept features via addFeature(s) methods.

virtual ~QgsFeatureSink();

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
%Docstring
Adds a single ``feature`` to the sink. Feature addition behavior is controlled by the specified ``flags``.

Expand All @@ -49,7 +49,7 @@ Adds a single ``feature`` to the sink. Feature addition behavior is controlled b
:return: ``True`` in case of success and ``False`` in case of failure
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) = 0;
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) = 0;
%Docstring
Adds a list of ``features`` to the sink. Feature addition behavior is controlled by the specified ``flags``.

Expand All @@ -58,7 +58,7 @@ Adds a list of ``features`` to the sink. Feature addition behavior is controlled
:return: ``True`` in case of success and ``False`` in case of failure
%End

virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
%Docstring
Adds all features from the specified ``iterator`` to the sink. Feature addition behavior is controlled by the specified ``flags``.

Expand Down
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgsfeaturestore.sip.in
Expand Up @@ -55,9 +55,9 @@ Sets the store's ``crs``.
.. seealso:: :py:func:`crs`
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


int count() const;
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsmaplayer.sip.in
Expand Up @@ -536,7 +536,7 @@ stored inside a local temporary folder (such as the "/tmp" folder on Linux).
typedef QFlags<QgsMapLayer::ReadFlag> ReadFlags;


bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context, QgsMapLayer::ReadFlags flags = 0 );
bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context, QgsMapLayer::ReadFlags flags = QgsMapLayer::ReadFlags() );
%Docstring
Sets state from DOM document

Expand Down
6 changes: 3 additions & 3 deletions python/core/auto_generated/qgsproject.sip.in
Expand Up @@ -317,7 +317,7 @@ Clears the project, removing all settings and resetting it back to an empty, def
.. versionadded:: 2.4
%End

bool read( const QString &filename, QgsProject::ReadFlags flags = 0 );
bool read( const QString &filename, QgsProject::ReadFlags flags = QgsProject::ReadFlags() );
%Docstring
Reads given project file from the given file.

Expand All @@ -327,7 +327,7 @@ Reads given project file from the given file.
:return: ``True`` if project file has been read successfully
%End

bool read( QgsProject::ReadFlags flags = 0 );
bool read( QgsProject::ReadFlags flags = QgsProject::ReadFlags() );
%Docstring
Reads the project from its currently associated file (see :py:func:`~QgsProject.fileName` ).

Expand Down Expand Up @@ -525,7 +525,7 @@ Returns project file path if layer is embedded from other project file. Returns
%End


QgsLayerTreeGroup *createEmbeddedGroup( const QString &groupName, const QString &projectFilePath, const QStringList &invisibleLayers, QgsProject::ReadFlags flags = 0 );
QgsLayerTreeGroup *createEmbeddedGroup( const QString &groupName, const QString &projectFilePath, const QStringList &invisibleLayers, QgsProject::ReadFlags flags = QgsProject::ReadFlags() );
%Docstring
Create layer group instance defined in an arbitrary project file.

Expand Down
6 changes: 3 additions & 3 deletions python/core/auto_generated/qgsproxyfeaturesink.sip.in
Expand Up @@ -33,9 +33,9 @@ proxy sink can be safely deleted without affecting the destination sink.
%Docstring
Constructs a new QgsProxyFeatureSink which forwards features onto a destination ``sink``.
%End
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

QgsFeatureSink *destinationSink();
%Docstring
Expand Down
Expand Up @@ -186,11 +186,11 @@ Sets the transform ``context`` to use when reprojecting features.
Remaps a ``feature`` to a set of features compatible with the destination sink.
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


QgsFeatureSink *destinationSink();
Expand Down
10 changes: 5 additions & 5 deletions python/core/auto_generated/qgsspatialindex.sip.in
Expand Up @@ -46,12 +46,12 @@ QgsSpatialIndex objects are implicitly shared and can be inexpensively copied.
typedef QFlags<QgsSpatialIndex::Flag> Flags;


QgsSpatialIndex( QgsSpatialIndex::Flags flags = 0 );
QgsSpatialIndex( QgsSpatialIndex::Flags flags = QgsSpatialIndex::Flags() );
%Docstring
Constructor for QgsSpatialIndex. Creates an empty R-tree index.
%End

explicit QgsSpatialIndex( const QgsFeatureIterator &fi, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = 0 );
explicit QgsSpatialIndex( const QgsFeatureIterator &fi, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = QgsSpatialIndex::Flags() );
%Docstring
Constructor - creates R-tree and bulk loads it with features from the iterator.
This is much faster approach than creating an empty index and then inserting features one by one.
Expand All @@ -64,7 +64,7 @@ that of the spatial index construction.
%End


explicit QgsSpatialIndex( const QgsFeatureSource &source, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = 0 );
explicit QgsSpatialIndex( const QgsFeatureSource &source, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = QgsSpatialIndex::Flags() );
%Docstring
Constructor - creates R-tree and bulk loads it with features from the source.
This is much faster approach than creating an empty index and then inserting features one by one.
Expand Down Expand Up @@ -93,7 +93,7 @@ Adds a ``feature`` to the index.
Use addFeature() instead
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

%Docstring
Adds a ``feature`` to the index.
Expand All @@ -103,7 +103,7 @@ The ``flags`` argument is ignored.
.. versionadded:: 3.4
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

%Docstring
Adds a list of ``features`` to the index.
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsvectordataprovider.sip.in
Expand Up @@ -232,7 +232,7 @@ or if the given attribute is not an enum type.
:param index: the index of the attribute
%End

virtual bool addFeatures( QgsFeatureList &flist /In,Out/, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &flist /In,Out/, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


virtual bool deleteFeatures( const QgsFeatureIds &id );
Expand Down
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgsvectorfilewriter.sip.in
Expand Up @@ -568,9 +568,9 @@ Checks whether there were any errors in constructor
Retrieves error message
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


bool addFeatureWithStyle( QgsFeature &feature, QgsFeatureRenderer *renderer, QgsUnitTypes::DistanceUnit outputUnit = QgsUnitTypes::DistanceMeters );
Expand Down
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgsvectorlayer.sip.in
Expand Up @@ -1160,7 +1160,7 @@ Queries the layer for the features with the given ids.
Queries the layer for the features which intersect the specified rectangle.
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) ${SIP_FINAL};


bool updateFeature( QgsFeature &feature, bool skipDefaultValues = false );
Expand Down Expand Up @@ -1969,7 +1969,7 @@ Deletes a list of attribute fields (but does not commit it)
:return: ``True`` if at least one attribute has been deleted
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) ${SIP_FINAL};


bool deleteFeature( QgsFeatureId fid, DeleteContext *context = 0 );
Expand Down
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgsvectorlayerexporter.sip.in
Expand Up @@ -120,9 +120,9 @@ Returns the number of error messages encountered during the export.
.. seealso:: :py:func:`errorCode`
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


~QgsVectorLayerExporter();
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsvectorlayerjoinbuffer.sip.in
Expand Up @@ -154,7 +154,7 @@ Create a copy of the join buffer
.. versionadded:: 2.6
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

%Docstring
Adds a list of features in joined layers. Features given in parameter
Expand Down
Expand Up @@ -25,7 +25,7 @@ enter their sizes and positions.
%End
public:

QgsLayoutItemPropertiesDialog( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
QgsLayoutItemPropertiesDialog( QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for :py:class:`QgsLayoutNewItemPropertiesDialog`.
%End
Expand Down
Expand Up @@ -29,7 +29,7 @@ Model designer dialog base class
%End
public:

QgsModelDesignerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QgsModelDesignerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
~QgsModelDesignerDialog();

virtual void closeEvent( QCloseEvent *event );
Expand Down
Expand Up @@ -34,7 +34,7 @@ Base class for processing algorithm dialogs.
FormatHtml,
};

QgsProcessingAlgorithmDialogBase( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QgsProcessingAlgorithmDialogBase( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsProcessingAlgorithmDialogBase.
%End
Expand Down
Expand Up @@ -125,7 +125,7 @@ A dialog for selection of multiple options from a fixed list of options.

QgsProcessingMultipleSelectionDialog( const QVariantList &availableOptions = QVariantList(),
const QVariantList &selectedOptions = QVariantList(),
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for :py:class:`QgsProcessingMultipleSelectionPanelWidget`.

Expand Down Expand Up @@ -229,7 +229,7 @@ A dialog for selection of multiple layer inputs.
const QVariantList &selectedOptions,
const QList< QgsProcessingModelChildParameterSource > &modelSources,
QgsProcessingModelAlgorithm *model = 0,
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsProcessingMultipleInputDialog.

Expand Down
4 changes: 2 additions & 2 deletions python/gui/auto_generated/qgsdockwidget.sip.in
Expand Up @@ -22,15 +22,15 @@ QgsDockWidget subclass with more fine-grained control over how the widget is clo
%End
public:

explicit QgsDockWidget( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
explicit QgsDockWidget( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsDockWidget.

:param parent: parent widget
:param flags: window flags
%End

explicit QgsDockWidget( const QString &title, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
explicit QgsDockWidget( const QString &title, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsDockWidget.

Expand Down

0 comments on commit 044a05d

Please sign in to comment.