@@ -404,7 +404,7 @@ Uses :py:class:`QgsExpression`
404
404
:return: The expression which will be used to preview features for this layer
405
405
%End
406
406
407
- QgsVectorDataProvider *dataProvider() final ;
407
+ QgsVectorDataProvider *dataProvider() ${SIP_FINAL} ;
408
408
409
409
void setProviderEncoding( const QString &encoding );
410
410
%Docstring
@@ -442,7 +442,7 @@ Returns the join buffer object.
442
442
%End
443
443
const QList<QgsVectorLayerJoinInfo> vectorJoins() const;
444
444
445
- bool setDependencies( const QSet<QgsMapLayerDependency> &layers ) final ;
445
+ bool setDependencies( const QSet<QgsMapLayerDependency> &layers ) ${SIP_FINAL} ;
446
446
%Docstring
447
447
Sets the list of dependencies.
448
448
@@ -455,7 +455,7 @@ Sets the list of dependencies.
455
455
.. versionadded:: 3.0
456
456
%End
457
457
458
- QSet<QgsMapLayerDependency> dependencies() const final ;
458
+ QSet<QgsMapLayerDependency> dependencies() const ${SIP_FINAL} ;
459
459
%Docstring
460
460
Gets the list of dependencies. This includes data dependencies set by the user (:py:func:`setDataDependencies`)
461
461
as well as dependencies given by the provider
@@ -721,7 +721,7 @@ Ownership is transferred.
721
721
Returns point, line or polygon
722
722
%End
723
723
724
- QgsWkbTypes::Type wkbType() const final ;
724
+ QgsWkbTypes::Type wkbType() const ${SIP_FINAL} ;
725
725
%Docstring
726
726
Returns the WKBType or WKBUnknown in case of error
727
727
%End
@@ -731,10 +731,10 @@ Returns the WKBType or WKBUnknown in case of error
731
731
Returns the provider type for this layer
732
732
%End
733
733
734
- QgsCoordinateReferenceSystem sourceCrs() const final ;
735
- QString sourceName() const final ;
734
+ QgsCoordinateReferenceSystem sourceCrs() const ${SIP_FINAL} ;
735
+ QString sourceName() const ${SIP_FINAL} ;
736
736
737
- bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context ) final ;
737
+ bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context ) ${SIP_FINAL} ;
738
738
%Docstring
739
739
Reads vector layer specific state from project file Dom node.
740
740
@@ -743,7 +743,7 @@ Reads vector layer specific state from project file Dom node.
743
743
Called by :py:func:`QgsMapLayer.readXml()`
744
744
%End
745
745
746
- bool writeXml( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const final ;
746
+ bool writeXml( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const ${SIP_FINAL} ;
747
747
%Docstring
748
748
Write vector layer specific state to project file Dom node.
749
749
@@ -752,10 +752,10 @@ Write vector layer specific state to project file Dom node.
752
752
Called by :py:func:`QgsMapLayer.writeXml()`
753
753
%End
754
754
755
- QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const final ;
756
- QString decodedSource( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const final ;
755
+ QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const ${SIP_FINAL} ;
756
+ QString decodedSource( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const ${SIP_FINAL} ;
757
757
758
- void resolveReferences( QgsProject *project ) final ;
758
+ void resolveReferences( QgsProject *project ) ${SIP_FINAL} ;
759
759
%Docstring
760
760
Resolve references to other layers (kept as layer IDs after reading XML) into layer objects.
761
761
@@ -821,7 +821,7 @@ Load a named style from file/local db/datasource db
821
821
%End
822
822
823
823
QString loadNamedStyle( const QString &theURI, bool &resultFlag /Out/,
824
- QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) final ;
824
+ QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL} ;
825
825
%Docstring
826
826
Calls loadNamedStyle( theURI, resultFlag, false );
827
827
Retained for backward compatibility
@@ -862,7 +862,7 @@ Returns the current auxiliary layer.
862
862
863
863
864
864
bool readSymbology( const QDomNode &layerNode, QString &errorMessage,
865
- QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) final ;
865
+ QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL} ;
866
866
%Docstring
867
867
Read the symbology for the current layer from the Dom node supplied.
868
868
@@ -875,7 +875,7 @@ Read the symbology for the current layer from the Dom node supplied.
875
875
%End
876
876
877
877
bool readStyle( const QDomNode &node, QString &errorMessage,
878
- QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) final ;
878
+ QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL} ;
879
879
%Docstring
880
880
Read the style for the current layer from the Dom node supplied.
881
881
@@ -888,7 +888,7 @@ Read the style for the current layer from the Dom node supplied.
888
888
%End
889
889
890
890
bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
891
- const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const final ;
891
+ const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL} ;
892
892
%Docstring
893
893
Write the symbology for the layer into the docment provided.
894
894
@@ -902,7 +902,7 @@ Write the symbology for the layer into the docment provided.
902
902
%End
903
903
904
904
bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage,
905
- const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const final ;
905
+ const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL} ;
906
906
%Docstring
907
907
Write just the style information for the layer into the document
908
908
@@ -927,7 +927,7 @@ Writes the symbology of the layer into the document provided in SLD 1.1 format
927
927
:return: true in case of success
928
928
%End
929
929
930
- bool readSld( const QDomNode &node, QString &errorMessage ) final ;
930
+ bool readSld( const QDomNode &node, QString &errorMessage ) ${SIP_FINAL} ;
931
931
932
932
long featureCount( const QString &legendKey ) const;
933
933
%Docstring
@@ -937,7 +937,7 @@ calculated by countSymbolFeatures()
937
937
:return: number of features rendered by symbol or -1 if failed or counts are not available
938
938
%End
939
939
940
- FeatureAvailability hasFeatures() const final ;
940
+ FeatureAvailability hasFeatures() const ${SIP_FINAL} ;
941
941
%Docstring
942
942
Determines if this vector layer has features.
943
943
@@ -984,7 +984,7 @@ if the geometry type of the new data source matches the current geometry type of
984
984
.. versionadded:: 3.2
985
985
%End
986
986
987
- QString loadDefaultStyle( bool &resultFlag /Out/ ) final ;
987
+ QString loadDefaultStyle( bool &resultFlag /Out/ ) ${SIP_FINAL} ;
988
988
989
989
QgsVectorLayerFeatureCounter *countSymbolFeatures();
990
990
%Docstring
@@ -1020,7 +1020,7 @@ Returns the string (typically sql) used to define a subset of the layer.
1020
1020
:return: The subset string or null QString if not implemented by the provider
1021
1021
%End
1022
1022
1023
- QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const final ;
1023
+ QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const ${SIP_FINAL} ;
1024
1024
%Docstring
1025
1025
Query the layer for features specified in request.
1026
1026
@@ -1050,7 +1050,7 @@ Query the layer for the features with the given ids.
1050
1050
Query the layer for the features which intersect the specified rectangle.
1051
1051
%End
1052
1052
1053
- bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) final ;
1053
+ bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL} ;
1054
1054
1055
1055
bool updateFeature( QgsFeature &feature, bool skipDefaultValues = false );
1056
1056
%Docstring
@@ -1412,12 +1412,12 @@ Set labeling configuration. Takes ownership of the object.
1412
1412
.. versionadded:: 3.0
1413
1413
%End
1414
1414
1415
- bool isEditable() const final ;
1415
+ bool isEditable() const ${SIP_FINAL} ;
1416
1416
%Docstring
1417
1417
Returns true if the provider is in editing mode
1418
1418
%End
1419
1419
1420
- bool isSpatial() const final ;
1420
+ bool isSpatial() const ${SIP_FINAL} ;
1421
1421
%Docstring
1422
1422
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeometry
1423
1423
%End
@@ -1435,22 +1435,22 @@ false otherwise.
1435
1435
.. versionadded:: 3.0
1436
1436
%End
1437
1437
1438
- void reload() final ;
1438
+ void reload() ${SIP_FINAL} ;
1439
1439
%Docstring
1440
1440
Synchronises with changes in the datasource
1441
1441
%End
1442
1442
1443
- QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) final /Factory/;
1443
+ QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) ${SIP_FINAL} /Factory/;
1444
1444
%Docstring
1445
1445
Returns new instance of QgsMapLayerRenderer that will be used for rendering of given context
1446
1446
1447
1447
.. versionadded:: 2.4
1448
1448
%End
1449
1449
1450
- QgsRectangle extent() const final ;
1451
- QgsRectangle sourceExtent() const final ;
1450
+ QgsRectangle extent() const ${SIP_FINAL} ;
1451
+ QgsRectangle sourceExtent() const ${SIP_FINAL} ;
1452
1452
1453
- QgsFields fields() const final ;
1453
+ QgsFields fields() const ${SIP_FINAL} ;
1454
1454
%Docstring
1455
1455
Returns the list of fields of this layer.
1456
1456
This also includes fields which have not yet been saved to the provider.
@@ -1468,7 +1468,7 @@ Returns list of attribute indexes. i.e. a list from 0 ... fieldCount()
1468
1468
Returns the list of attributes which make up the layer's primary keys.
1469
1469
%End
1470
1470
1471
- long featureCount() const final ;
1471
+ long featureCount() const ${SIP_FINAL} ;
1472
1472
%Docstring
1473
1473
Returns feature count including changes which have not yet been committed
1474
1474
If you need only the count of committed features call this method on this layer's provider.
@@ -1692,7 +1692,7 @@ Deletes a list of attribute fields (but does not commit it)
1692
1692
:return: true if at least one attribute has been deleted
1693
1693
%End
1694
1694
1695
- bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) final ;
1695
+ bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL} ;
1696
1696
1697
1697
bool deleteFeature( QgsFeatureId fid );
1698
1698
%Docstring
@@ -1975,7 +1975,7 @@ for the field at `index`.
1975
1975
.. versionadded:: 3.0
1976
1976
%End
1977
1977
1978
- QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const final ;
1978
+ QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const ${SIP_FINAL} ;
1979
1979
%Docstring
1980
1980
Calculates a list of unique values contained within an attribute in the layer. Note that
1981
1981
in some circumstances when unsaved changes are present for the layer then the returned list
@@ -2009,7 +2009,7 @@ returned list).
2009
2009
:return: list of unique strings containing substring
2010
2010
%End
2011
2011
2012
- QVariant minimumValue( int index ) const final ;
2012
+ QVariant minimumValue( int index ) const ${SIP_FINAL} ;
2013
2013
%Docstring
2014
2014
Returns the minimum value for an attribute column or an invalid variant in case of error.
2015
2015
Note that in some circumstances when unsaved changes are present for the layer then the
@@ -2021,7 +2021,7 @@ been changed inside the edit buffer then the previous saved value may be returne
2021
2021
.. seealso:: :py:func:`uniqueValues`
2022
2022
%End
2023
2023
2024
- QVariant maximumValue( int index ) const final ;
2024
+ QVariant maximumValue( int index ) const ${SIP_FINAL} ;
2025
2025
%Docstring
2026
2026
Returns the maximum value for an attribute column or an invalid variant in case of error.
2027
2027
Note that in some circumstances when unsaved changes are present for the layer then the
@@ -2085,7 +2085,7 @@ and 1.0 (fully opaque).
2085
2085
.. versionadded:: 3.0
2086
2086
%End
2087
2087
2088
- QString htmlMetadata() const final ;
2088
+ QString htmlMetadata() const ${SIP_FINAL} ;
2089
2089
2090
2090
void setSimplifyMethod( const QgsVectorSimplifyMethod &simplifyMethod );
2091
2091
%Docstring
@@ -2153,9 +2153,9 @@ It may also contain embedded expressions.
2153
2153
.. versionadded:: 3.0
2154
2154
%End
2155
2155
2156
- QgsExpressionContext createExpressionContext() const final ;
2156
+ QgsExpressionContext createExpressionContext() const ${SIP_FINAL} ;
2157
2157
2158
- QgsExpressionContextScope *createExpressionContextScope() const final /Factory/;
2158
+ QgsExpressionContextScope *createExpressionContextScope() const ${SIP_FINAL} /Factory/;
2159
2159
2160
2160
QgsEditFormConfig editFormConfig() const;
2161
2161
%Docstring
@@ -2566,7 +2566,7 @@ Emitted when the feature count for symbols on this layer has been recalculated.
2566
2566
%End
2567
2567
2568
2568
protected:
2569
- void setExtent( const QgsRectangle &rect ) final ;
2569
+ void setExtent( const QgsRectangle &rect ) ${SIP_FINAL} ;
2570
2570
%Docstring
2571
2571
Sets the extent
2572
2572
%End
0 commit comments