Skip to content
Permalink
Browse files

[qt6] QVector and QList are unified

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 27, 2021
1 parent 84fcfd0 commit a75f6ab903e50932c79ff347fe741020699b8c0e
@@ -1429,6 +1429,7 @@ Adds a new part polygon to a multipart feature
- will be removed in QGIS 4.0. Use the variant which accepts :py:class:`QgsPoint` objects instead of :py:class:`QgsPointXY`.
%End


QgsGeometry::OperationResult addPart( const QVector<QgsPointXY> &ring ) /PyName=addPartV2,Deprecated/;
%Docstring
Adds a new part polygon to a multipart feature
@@ -1286,10 +1286,12 @@ QgsGeometry::OperationResult QgsVectorLayer::addPart( const QList<QgsPointXY> &p
return addPart( pts );
}

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QgsGeometry::OperationResult QgsVectorLayer::addPart( const QVector<QgsPointXY> &points )
{
return addPart( vectorPointXY2pointSequence( points ) );
}
#endif

QgsGeometry::OperationResult QgsVectorLayer::addPart( const QgsPointSequence &points )
{
@@ -1425,6 +1425,8 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*/
Q_DECL_DEPRECATED QgsGeometry::OperationResult addPart( const QList<QgsPointXY> &ring ) SIP_DEPRECATED;

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)

/**
* Adds a new part polygon to a multipart feature
* \returns QgsGeometry::OperationResult
@@ -1446,6 +1448,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
* \deprecated since QGIS 3.12 - will be removed in QGIS 4.0. Use the variant which accepts QgsPoint objects instead of QgsPointXY.
*/
Q_DECL_DEPRECATED QgsGeometry::OperationResult addPart( const QVector<QgsPointXY> &ring ) SIP_PYNAME( addPartV2 ) SIP_DEPRECATED;
#endif

/**
* Adds a new part polygon to a multipart feature

0 comments on commit a75f6ab

Please sign in to comment.