@@ -772,7 +772,7 @@ Return the provider type for this layer
772772 :rtype: str
773773%End
774774
775- bool readSymbology( const QDomNode &layerNode, QString &errorMessage );
775+ virtual bool readSymbology( const QDomNode &layerNode, QString &errorMessage );
776776%Docstring
777777 Read the symbology for the current layer from the Dom node supplied.
778778 \param layerNode node that will contain the symbology definition for this layer.
@@ -781,7 +781,7 @@ Return the provider type for this layer
781781 :rtype: bool
782782%End
783783
784- bool readStyle( const QDomNode &node, QString &errorMessage );
784+ virtual bool readStyle( const QDomNode &node, QString &errorMessage );
785785%Docstring
786786 Read the style for the current layer from the Dom node supplied.
787787 \param node node that will contain the style definition for this layer.
@@ -790,7 +790,7 @@ Return the provider type for this layer
790790 :rtype: bool
791791%End
792792
793- bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage ) const;
793+ virtual bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage ) const;
794794%Docstring
795795 Write the symbology for the layer into the docment provided.
796796 \param node the node that will have the style element added to it.
@@ -800,7 +800,7 @@ Return the provider type for this layer
800800 :rtype: bool
801801%End
802802
803- bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage ) const;
803+ virtual bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage ) const;
804804%Docstring
805805 Write just the style information for the layer into the document
806806 \param node the node that will have the style element added to it.
@@ -821,7 +821,7 @@ Return the provider type for this layer
821821 :rtype: bool
822822%End
823823
824- bool readSld( const QDomNode &node, QString &errorMessage );
824+ virtual bool readSld( const QDomNode &node, QString &errorMessage );
825825
826826 long featureCount( const QString &legendKey ) const;
827827%Docstring
@@ -1099,7 +1099,7 @@ Synchronises with changes in the datasource
10991099 :rtype: QgsMapLayerRenderer
11001100%End
11011101
1102- QgsRectangle extent() const;
1102+ virtual QgsRectangle extent() const;
11031103%Docstring
11041104Return the extent of the layer
11051105 :rtype: QgsRectangle
@@ -1627,7 +1627,7 @@ Returns the current transparency for the vector layer
16271627 :rtype: int
16281628%End
16291629
1630- QString htmlMetadata() const;
1630+ virtual QString htmlMetadata() const;
16311631
16321632
16331633 void setSimplifyMethod( const QgsVectorSimplifyMethod &simplifyMethod );
@@ -1695,7 +1695,7 @@ Returns the current transparency for the vector layer
16951695.. versionadded:: 3.0
16961696%End
16971697
1698- QgsExpressionContext createExpressionContext() const;
1698+ virtual QgsExpressionContext createExpressionContext() const;
16991699
17001700 QgsEditFormConfig editFormConfig() const;
17011701%Docstring
@@ -2041,7 +2041,7 @@ Signal emitted when setLayerTransparency() is called
20412041
20422042
20432043 protected:
2044- void setExtent( const QgsRectangle &rect );
2044+ virtual void setExtent( const QgsRectangle &rect );
20452045%Docstring
20462046Set the extent
20472047%End
0 commit comments