Skip to content
Permalink
Browse files

Remove some old composer theme related code

  • Loading branch information
nyalldawson committed Jan 7, 2018
1 parent 7edab22 commit 4f825f8ff7e403dff3a269bc6bb13cf5bc87d12c
Showing with 1 addition and 17 deletions.
  1. +1 −17 src/app/qgisapp.cpp
@@ -2220,11 +2220,7 @@ void QgisApp::setAppStyleSheet( const QString &stylesheet )
{
setStyleSheet( stylesheet );

// cascade styles to any current project composers
Q_FOREACH ( QgsComposer *c, mPrintComposers )
{
c->setStyleSheet( stylesheet );
}
// cascade styles to any current layout designers
Q_FOREACH ( QgsLayoutDesignerDialog *d, mLayoutDesignerDialogs )
{
d->setStyleSheet( stylesheet );
@@ -2959,10 +2955,6 @@ void QgisApp::setIconSizes( int size )
}
}

Q_FOREACH ( QgsComposer *c, mPrintComposers )
{
c->setIconSizes( size );
}
Q_FOREACH ( QgsLayoutDesignerDialog *d, mLayoutDesignerDialogs )
{
d->setIconSizes( size );
@@ -2997,7 +2989,6 @@ void QgisApp::setTheme( const QString &themeName )
mActionOpenProject->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileOpen.svg" ) ) );
mActionSaveProject->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileSave.svg" ) ) );
mActionSaveProjectAs->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileSaveAs.svg" ) ) );
mActionShowComposerManager->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionComposerManager.svg" ) ) );
mActionSaveMapAsImage->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionSaveMapAsImage.svg" ) ) );
mActionSaveMapAsPdf->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionSaveAsPDF.svg" ) ) );
mActionExit->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionFileExit.png" ) ) );
@@ -3136,13 +3127,6 @@ void QgisApp::setTheme( const QString &themeName )
mActionDecorationScaleBar->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionScaleBar.svg" ) ) );
mActionDecorationGrid->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/transformed.svg" ) ) );

//change themes of all composers
QSet<QgsComposer *>::const_iterator composerIt = mPrintComposers.constBegin();
for ( ; composerIt != mPrintComposers.constEnd(); ++composerIt )
{
( *composerIt )->setupTheme();
}

emit currentThemeChanged( themeName );
}

0 comments on commit 4f825f8

Please sign in to comment.
You can’t perform that action at this time.