Skip to content

Commit

Permalink
Followup f3482d2: mapThemeStyleOverrides is plural
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 23, 2016
1 parent 73d9c4a commit 7726205
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/core/qgsmapthemecollection.sip
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class QgsMapThemeCollection : QObject
/**
* Get layer style overrides (for QgsMapSettings) of the visible layers for given map theme.
*/
QMap<QString, QString> mapThemeStyleOverride( const QString& name );
QMap<QString, QString> mapThemeStyleOverrides( const QString& name );

/**
* Reads the map theme collection state from XML
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposermapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void QgsComposerMapWidget::keepLayersVisibilityPresetSelected()

mKeepLayerStylesCheckBox->setChecked( true );

mComposerMap->setLayerStyleOverrides( QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverride( presetName ) );
mComposerMap->setLayerStyleOverrides( QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverrides( presetName ) );

mComposerMap->cache();
mComposerMap->update();
Expand Down
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposermap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ QMap<QString, QString> QgsComposerMap::layerStyleOverridesToRender( const QgsExp
}

if ( QgsProject::instance()->mapThemeCollection()->hasMapTheme( presetName ) )
return QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverride( presetName );
return QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverrides( presetName );
else
return QMap<QString, QString>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmapthemecollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void QgsMapThemeCollection::applyMapThemeCheckedLegendNodesToLayer( const QStrin
}


QMap<QString, QString> QgsMapThemeCollection::mapThemeStyleOverride( const QString& presetName )
QMap<QString, QString> QgsMapThemeCollection::mapThemeStyleOverrides( const QString& presetName )
{
QMap<QString, QString> styleOverrides;
if ( !mMapThemes.contains( presetName ) )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsmapthemecollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class CORE_EXPORT QgsMapThemeCollection : public QObject
* Get layer style overrides (for QgsMapSettings) of the visible layers for given map theme.
* @note Added in QGIS 3.0
*/
QMap<QString, QString> mapThemeStyleOverride( const QString& name );
QMap<QString, QString> mapThemeStyleOverrides( const QString& name );

/**
* Reads the map theme collection state from XML
Expand Down

0 comments on commit 7726205

Please sign in to comment.