@@ -484,8 +484,8 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
484
484
*/
485
485
QString displayExpression () const ;
486
486
487
- QgsVectorDataProvider *dataProvider () SIP_FINAL ;
488
- const QgsVectorDataProvider *dataProvider () const SIP_FINAL SIP_SKIP;
487
+ QgsVectorDataProvider *dataProvider () FINAL ;
488
+ const QgsVectorDataProvider *dataProvider () const FINAL SIP_SKIP;
489
489
490
490
// ! Sets the textencoding of the data provider
491
491
void setProviderEncoding ( const QString &encoding );
@@ -519,7 +519,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
519
519
* \returns false if a dependency cycle has been detected
520
520
* \since QGIS 3.0
521
521
*/
522
- bool setDependencies ( const QSet<QgsMapLayerDependency> &layers ) SIP_FINAL ;
522
+ bool setDependencies ( const QSet<QgsMapLayerDependency> &layers ) FINAL ;
523
523
524
524
/* *
525
525
* Gets the list of dependencies. This includes data dependencies set by the user (\see setDataDependencies)
@@ -528,7 +528,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
528
528
* \returns a set of QgsMapLayerDependency
529
529
* \since QGIS 3.0
530
530
*/
531
- QSet<QgsMapLayerDependency> dependencies () const SIP_FINAL ;
531
+ QSet<QgsMapLayerDependency> dependencies () const FINAL ;
532
532
533
533
/* *
534
534
* Add a new field which is calculated by the expression specified
@@ -752,34 +752,34 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
752
752
QgsWkbTypes::GeometryType geometryType () const ;
753
753
754
754
// ! Returns the WKBType or WKBUnknown in case of error
755
- QgsWkbTypes::Type wkbType () const SIP_FINAL ;
755
+ QgsWkbTypes::Type wkbType () const FINAL ;
756
756
757
757
// ! Returns the provider type for this layer
758
758
QString providerType () const ;
759
759
760
- QgsCoordinateReferenceSystem sourceCrs () const SIP_FINAL ;
761
- QString sourceName () const SIP_FINAL ;
760
+ QgsCoordinateReferenceSystem sourceCrs () const FINAL ;
761
+ QString sourceName () const FINAL ;
762
762
763
763
/* *
764
764
* Reads vector layer specific state from project file Dom node.
765
765
* \note Called by QgsMapLayer::readXml().
766
766
*/
767
- bool readXml ( const QDomNode &layer_node, QgsReadWriteContext &context ) SIP_FINAL ;
767
+ bool readXml ( const QDomNode &layer_node, QgsReadWriteContext &context ) FINAL ;
768
768
769
769
/* *
770
770
* Write vector layer specific state to project file Dom node.
771
771
* \note Called by QgsMapLayer::writeXml().
772
772
*/
773
- bool writeXml ( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const SIP_FINAL ;
773
+ bool writeXml ( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const FINAL ;
774
774
775
- QString encodedSource ( const QString &source, const QgsReadWriteContext &context ) const SIP_FINAL ;
776
- QString decodedSource ( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const SIP_FINAL ;
775
+ QString encodedSource ( const QString &source, const QgsReadWriteContext &context ) const FINAL ;
776
+ QString decodedSource ( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const FINAL ;
777
777
778
778
/* *
779
779
* Resolve references to other layers (kept as layer IDs after reading XML) into layer objects.
780
780
* \since QGIS 3.0
781
781
*/
782
- void resolveReferences ( QgsProject *project ) SIP_FINAL ;
782
+ void resolveReferences ( QgsProject *project ) FINAL ;
783
783
784
784
/* *
785
785
* Save named and sld style of the layer to the style table in the db.
@@ -834,7 +834,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
834
834
* Retained for backward compatibility
835
835
*/
836
836
QString loadNamedStyle ( const QString &theURI, bool &resultFlag SIP_OUT,
837
- QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) SIP_FINAL ;
837
+ QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) FINAL ;
838
838
839
839
/* *
840
840
* Loads the auxiliary layer for this vector layer. If there's no
@@ -885,7 +885,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
885
885
* \returns true in case of success.
886
886
*/
887
887
bool readSymbology ( const QDomNode &layerNode, QString &errorMessage,
888
- QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) SIP_FINAL ;
888
+ QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) FINAL ;
889
889
890
890
/* *
891
891
* Read the style for the current layer from the Dom node supplied.
@@ -896,7 +896,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
896
896
* \returns true in case of success.
897
897
*/
898
898
bool readStyle ( const QDomNode &node, QString &errorMessage,
899
- QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) SIP_FINAL ;
899
+ QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) FINAL ;
900
900
901
901
/* *
902
902
* Write the symbology for the layer into the docment provided.
@@ -908,7 +908,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
908
908
* \returns true in case of success.
909
909
*/
910
910
bool writeSymbology ( QDomNode &node, QDomDocument &doc, QString &errorMessage,
911
- const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const SIP_FINAL ;
911
+ const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const FINAL ;
912
912
913
913
/* *
914
914
* Write just the style information for the layer into the document
@@ -920,7 +920,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
920
920
* \returns true in case of success.
921
921
*/
922
922
bool writeStyle ( QDomNode &node, QDomDocument &doc, QString &errorMessage,
923
- const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const SIP_FINAL ;
923
+ const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const FINAL ;
924
924
925
925
/* *
926
926
* Writes the symbology of the layer into the document provided in SLD 1.1 format
@@ -932,7 +932,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
932
932
*/
933
933
bool writeSld ( QDomNode &node, QDomDocument &doc, QString &errorMessage, const QgsStringMap &props = QgsStringMap() ) const ;
934
934
935
- bool readSld ( const QDomNode &node, QString &errorMessage ) SIP_FINAL ;
935
+ bool readSld ( const QDomNode &node, QString &errorMessage ) FINAL ;
936
936
937
937
/* *
938
938
* Number of features rendered with specified legend key. Features must be first
@@ -951,7 +951,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
951
951
*
952
952
* \since QGIS 3.4
953
953
*/
954
- FeatureAvailability hasFeatures () const SIP_FINAL ;
954
+ FeatureAvailability hasFeatures () const FINAL ;
955
955
956
956
/* *
957
957
* Update the data source of the layer. The layer's renderer and legend will be preserved only
@@ -980,7 +980,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
980
980
*/
981
981
void setDataSource ( const QString &dataSource, const QString &baseName, const QString &provider, const QgsDataProvider::ProviderOptions &options, bool loadDefaultStyleFlag = false );
982
982
983
- QString loadDefaultStyle ( bool &resultFlag SIP_OUT ) SIP_FINAL ;
983
+ QString loadDefaultStyle ( bool &resultFlag SIP_OUT ) FINAL ;
984
984
985
985
/* *
986
986
* Count features for symbols.
@@ -1016,7 +1016,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1016
1016
* \param request feature request describing parameters of features to return
1017
1017
* \returns iterator for matching features from provider
1018
1018
*/
1019
- QgsFeatureIterator getFeatures ( const QgsFeatureRequest &request = QgsFeatureRequest() ) const SIP_FINAL ;
1019
+ QgsFeatureIterator getFeatures ( const QgsFeatureRequest &request = QgsFeatureRequest() ) const FINAL ;
1020
1020
1021
1021
/* *
1022
1022
* Query the layer for features matching a given expression.
@@ -1053,7 +1053,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1053
1053
return getFeatures ( QgsFeatureRequest ( rectangle ) );
1054
1054
}
1055
1055
1056
- bool addFeature ( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr ) SIP_FINAL ;
1056
+ bool addFeature ( QgsFeature &feature, QgsFeatureSink::Flags flags = nullptr ) FINAL ;
1057
1057
1058
1058
/* *
1059
1059
* Updates an existing \a feature in the layer, replacing the attributes and geometry for the feature
@@ -1335,10 +1335,10 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1335
1335
void setLabeling ( QgsAbstractVectorLayerLabeling *labeling SIP_TRANSFER );
1336
1336
1337
1337
// ! Returns true if the provider is in editing mode
1338
- bool isEditable () const SIP_FINAL ;
1338
+ bool isEditable () const FINAL ;
1339
1339
1340
1340
// ! Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeometry
1341
- bool isSpatial () const SIP_FINAL ;
1341
+ bool isSpatial () const FINAL ;
1342
1342
1343
1343
// ! Returns true if the provider has been modified since the last commit
1344
1344
virtual bool isModified () const ;
@@ -1352,24 +1352,24 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1352
1352
bool isAuxiliaryField ( int index, int &srcIndex ) const ;
1353
1353
1354
1354
// ! Synchronises with changes in the datasource
1355
- void reload () SIP_FINAL ;
1355
+ void reload () FINAL ;
1356
1356
1357
1357
/* *
1358
1358
* Returns new instance of QgsMapLayerRenderer that will be used for rendering of given context
1359
1359
* \since QGIS 2.4
1360
1360
*/
1361
- QgsMapLayerRenderer *createMapRenderer ( QgsRenderContext &rendererContext ) SIP_FINAL SIP_FACTORY;
1361
+ QgsMapLayerRenderer *createMapRenderer ( QgsRenderContext &rendererContext ) FINAL SIP_FACTORY;
1362
1362
1363
- QgsRectangle extent () const SIP_FINAL ;
1364
- QgsRectangle sourceExtent () const SIP_FINAL ;
1363
+ QgsRectangle extent () const FINAL ;
1364
+ QgsRectangle sourceExtent () const FINAL ;
1365
1365
1366
1366
/* *
1367
1367
* Returns the list of fields of this layer.
1368
1368
* This also includes fields which have not yet been saved to the provider.
1369
1369
*
1370
1370
* \returns A list of fields
1371
1371
*/
1372
- QgsFields fields () const SIP_FINAL ;
1372
+ QgsFields fields () const FINAL ;
1373
1373
1374
1374
/* *
1375
1375
* Returns list of attribute indexes. i.e. a list from 0 ... fieldCount()
@@ -1385,7 +1385,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1385
1385
* Returns feature count including changes which have not yet been committed
1386
1386
* If you need only the count of committed features call this method on this layer's provider.
1387
1387
*/
1388
- long featureCount () const SIP_FINAL ;
1388
+ long featureCount () const FINAL ;
1389
1389
1390
1390
/* *
1391
1391
* Make layer read-only (editing disabled) or not
@@ -1574,7 +1574,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1574
1574
*/
1575
1575
bool deleteAttributes ( const QList<int > &attrs );
1576
1576
1577
- bool addFeatures ( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) SIP_FINAL ;
1577
+ bool addFeatures ( QgsFeatureList &features, QgsFeatureSink::Flags flags = nullptr ) FINAL ;
1578
1578
1579
1579
/* *
1580
1580
* Deletes a feature from the layer (but does not commit it).
@@ -1819,7 +1819,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1819
1819
* \see minimumValue()
1820
1820
* \see maximumValue()
1821
1821
*/
1822
- QSet<QVariant> uniqueValues ( int fieldIndex, int limit = -1 ) const SIP_FINAL ;
1822
+ QSet<QVariant> uniqueValues ( int fieldIndex, int limit = -1 ) const FINAL ;
1823
1823
1824
1824
/* *
1825
1825
* Returns unique string values of an attribute which contain a specified subset string. Subset
@@ -1845,7 +1845,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1845
1845
* \see maximumValue()
1846
1846
* \see uniqueValues()
1847
1847
*/
1848
- QVariant minimumValue ( int index ) const SIP_FINAL ;
1848
+ QVariant minimumValue ( int index ) const FINAL ;
1849
1849
1850
1850
/* *
1851
1851
* Returns the maximum value for an attribute column or an invalid variant in case of error.
@@ -1855,7 +1855,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1855
1855
* \see minimumValue()
1856
1856
* \see uniqueValues()
1857
1857
*/
1858
- QVariant maximumValue ( int index ) const SIP_FINAL ;
1858
+ QVariant maximumValue ( int index ) const FINAL ;
1859
1859
1860
1860
/* *
1861
1861
* Calculates an aggregated value from the layer's features.
@@ -1896,7 +1896,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1896
1896
*/
1897
1897
double opacity () const ;
1898
1898
1899
- QString htmlMetadata () const SIP_FINAL ;
1899
+ QString htmlMetadata () const FINAL ;
1900
1900
1901
1901
/* *
1902
1902
* Set the simplification settings for fast rendering of features
@@ -1956,9 +1956,9 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
1956
1956
*/
1957
1957
void setMapTipTemplate ( const QString &mapTipTemplate );
1958
1958
1959
- QgsExpressionContext createExpressionContext () const SIP_FINAL ;
1959
+ QgsExpressionContext createExpressionContext () const FINAL ;
1960
1960
1961
- QgsExpressionContextScope *createExpressionContextScope () const SIP_FINAL SIP_FACTORY;
1961
+ QgsExpressionContextScope *createExpressionContextScope () const FINAL SIP_FACTORY;
1962
1962
1963
1963
/* *
1964
1964
* Returns the configuration of the form used to represent this vector layer.
@@ -2328,7 +2328,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
2328
2328
2329
2329
protected:
2330
2330
// ! Sets the extent
2331
- void setExtent ( const QgsRectangle &rect ) SIP_FINAL ;
2331
+ void setExtent ( const QgsRectangle &rect ) FINAL ;
2332
2332
2333
2333
private slots:
2334
2334
void invalidateSymbolCountedFlag ();
@@ -2346,7 +2346,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
2346
2346
/* *
2347
2347
* Returns true if the provider is in read-only mode
2348
2348
*/
2349
- bool isReadOnly () const SIP_FINAL ;
2349
+ bool isReadOnly () const FINAL ;
2350
2350
2351
2351
/* *
2352
2352
* Bind layer to a specific data provider
0 commit comments