Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Deprecate refreshLegend
- Loading branch information
|
@@ -1054,8 +1054,10 @@ void QgsRasterLayerProperties::apply() |
|
|
mRasterLayer->setCustomProperty( "WMSBackgroundLayer", mBackgroundLayerCheckBox->isChecked() ); |
|
|
|
|
|
|
|
|
// update symbology (this is now disconnected) |
|
|
// update symbology (this is now deprecated and disconnected) |
|
|
Q_NOWARN_DEPRECATED_PUSH |
|
|
emit refreshLegend( mRasterLayer->id(), false ); |
|
|
Q_NOWARN_DEPRECATED_POP |
|
|
|
|
|
// Force a redraw of the legend |
|
|
mRasterLayer->setLegend( QgsMapLayerLegend::defaultRasterLegend( mRasterLayer ) ); |
|
|
|
@@ -141,7 +141,7 @@ class APP_EXPORT QgsRasterLayerProperties : public QgsOptionsDialogBase, private |
|
|
|
|
|
signals: |
|
|
//! Emitted when changes to layer were saved to update legend |
|
|
void refreshLegend( const QString &layerID, bool expandItem ); |
|
|
Q_DECL_DEPRECATED void refreshLegend( const QString &layerID, bool expandItem ) SIP_DEPRECATED; |
|
|
|
|
|
private: |
|
|
QPushButton *mBtnStyle = nullptr; |
|
|
|
@@ -754,8 +754,10 @@ void QgsVectorLayerProperties::apply() |
|
|
mLayer->geometryOptions()->setRemoveDuplicateNodes( mRemoveDuplicateNodesCheckbox->isChecked() ); |
|
|
mLayer->geometryOptions()->setGeometryPrecision( mGeometryPrecisionSpinBox->value() ); |
|
|
|
|
|
// update symbology |
|
|
// update symbology (this is now deprecated and disconnected) |
|
|
Q_NOWARN_DEPRECATED_PUSH |
|
|
emit refreshLegend( mLayer->id() ); |
|
|
Q_NOWARN_DEPRECATED_POP |
|
|
|
|
|
mLayer->triggerRepaint(); |
|
|
// notify the project we've made a change |
|
|
|
@@ -133,8 +133,8 @@ class APP_EXPORT QgsVectorLayerProperties : public QgsOptionsDialogBase, private |
|
|
signals: |
|
|
|
|
|
//! Emitted when changes to layer were saved to update legend |
|
|
void refreshLegend( const QString &layerID, bool expandItem ); |
|
|
void refreshLegend( const QString &layerID ); |
|
|
Q_DECL_DEPRECATED void refreshLegend( const QString &layerID, bool expandItem ) SIP_DEPRECATED; |
|
|
Q_DECL_DEPRECATED void refreshLegend( const QString &layerID ) SIP_DEPRECATED; |
|
|
|
|
|
void toggleEditing( QgsMapLayer * ); |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.