Skip to content

Commit 62e499e

Browse files
committed
Promote rendererChanged() signal from raster+vector layer to base map layer
1 parent 2fc65a9 commit 62e499e

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

python/core/qgsmaplayer.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ class QgsMapLayer : QObject
427427
/** Signal emitted when the blend mode is changed, through QgsMapLayer::setBlendMode() */
428428
void blendModeChanged( const QPainter::CompositionMode &blendMode );
429429

430+
/** Signal emitted when renderer is changed */
431+
void rendererChanged();
432+
430433
protected:
431434
/** Set the extent */
432435
virtual void setExtent( const QgsRectangle &rect );

python/core/qgsvectorlayer.sip

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,9 +1239,6 @@ class QgsVectorLayer : QgsMapLayer
12391239
*/
12401240
void labelingFontNotFound( QgsVectorLayer* layer, const QString& fontfamily );
12411241

1242-
/** Signal emitted on symbology changes, when setRendererV2() is called */
1243-
void rendererChanged();
1244-
12451242
/** Signal emitted when setFeatureBlendMode() is called */
12461243
void featureBlendModeChanged( const QPainter::CompositionMode &blendMode );
12471244

python/core/raster/qgsrasterlayer.sip

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,6 @@ class QgsRasterLayer : QgsMapLayer
229229
*/
230230
void dataChanged();
231231

232-
/** Signal emitted when the symbology changes, through call to setRenderer() */
233-
void rendererChanged();
234-
235232
protected:
236233
/** \brief Read the symbology for the current layer from the Dom node supplied */
237234
bool readSymbology( const QDomNode& node, QString& errorMessage );

src/core/qgsmaplayer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ class CORE_EXPORT QgsMapLayer : public QObject
443443
/** Signal emitted when the blend mode is changed, through QgsMapLayer::setBlendMode() */
444444
void blendModeChanged( const QPainter::CompositionMode &blendMode );
445445

446+
/** Signal emitted when renderer is changed */
447+
void rendererChanged();
448+
446449
protected:
447450
/** Set the extent */
448451
virtual void setExtent( const QgsRectangle &rect );

src/core/qgsvectorlayer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,9 +1584,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
15841584
*/
15851585
void labelingFontNotFound( QgsVectorLayer* layer, const QString& fontfamily );
15861586

1587-
/** Signal emitted on symbology changes, when setRendererV2() is called */
1588-
void rendererChanged();
1589-
15901587
/** Signal emitted when setFeatureBlendMode() is called */
15911588
void featureBlendModeChanged( const QPainter::CompositionMode &blendMode );
15921589

src/core/raster/qgsrasterlayer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
389389
*/
390390
void dataChanged();
391391

392-
/** Signal emitted when the symbology changes, through call to setRenderer() */
393-
void rendererChanged();
394-
395392
protected:
396393
/** \brief Read the symbology for the current layer from the Dom node supplied */
397394
bool readSymbology( const QDomNode& node, QString& errorMessage );

0 commit comments

Comments
 (0)