@@ -2220,11 +2220,7 @@ void QgisApp::setAppStyleSheet( const QString &stylesheet )
2220
2220
{
2221
2221
setStyleSheet( stylesheet );
2222
2222
2223
- // cascade styles to any current project composers
2224
- Q_FOREACH ( QgsComposer *c, mPrintComposers )
2225
- {
2226
- c->setStyleSheet( stylesheet );
2227
- }
2223
+ // cascade styles to any current layout designers
2228
2224
Q_FOREACH ( QgsLayoutDesignerDialog *d, mLayoutDesignerDialogs )
2229
2225
{
2230
2226
d->setStyleSheet( stylesheet );
@@ -2959,10 +2955,6 @@ void QgisApp::setIconSizes( int size )
2959
2955
}
2960
2956
}
2961
2957
2962
- Q_FOREACH ( QgsComposer *c, mPrintComposers )
2963
- {
2964
- c->setIconSizes( size );
2965
- }
2966
2958
Q_FOREACH ( QgsLayoutDesignerDialog *d, mLayoutDesignerDialogs )
2967
2959
{
2968
2960
d->setIconSizes( size );
@@ -2997,7 +2989,6 @@ void QgisApp::setTheme( const QString &themeName )
2997
2989
mActionOpenProject->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileOpen.svg" ) ) );
2998
2990
mActionSaveProject->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileSave.svg" ) ) );
2999
2991
mActionSaveProjectAs->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileSaveAs.svg" ) ) );
3000
- mActionShowComposerManager->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionComposerManager.svg" ) ) );
3001
2992
mActionSaveMapAsImage->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionSaveMapAsImage.svg" ) ) );
3002
2993
mActionSaveMapAsPdf->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionSaveAsPDF.svg" ) ) );
3003
2994
mActionExit->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileExit.png" ) ) );
@@ -3136,13 +3127,6 @@ void QgisApp::setTheme( const QString &themeName )
3136
3127
mActionDecorationScaleBar->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionScaleBar.svg" ) ) );
3137
3128
mActionDecorationGrid->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/transformed.svg" ) ) );
3138
3129
3139
- //change themes of all composers
3140
- QSet<QgsComposer *>::const_iterator composerIt = mPrintComposers.constBegin();
3141
- for ( ; composerIt != mPrintComposers.constEnd(); ++composerIt )
3142
- {
3143
- ( *composerIt )->setupTheme();
3144
- }
3145
-
3146
3130
emit currentThemeChanged( themeName );
3147
3131
}
3148
3132
0 commit comments