mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
Followup f3482d2: mapThemeStyleOverrides is plural
This commit is contained in:
parent
73d9c4a295
commit
7726205dc3
@ -114,7 +114,7 @@ class QgsMapThemeCollection : QObject
|
|||||||
/**
|
/**
|
||||||
* Get layer style overrides (for QgsMapSettings) of the visible layers for given map theme.
|
* 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
|
* Reads the map theme collection state from XML
|
||||||
|
@ -206,7 +206,7 @@ void QgsComposerMapWidget::keepLayersVisibilityPresetSelected()
|
|||||||
|
|
||||||
mKeepLayerStylesCheckBox->setChecked( true );
|
mKeepLayerStylesCheckBox->setChecked( true );
|
||||||
|
|
||||||
mComposerMap->setLayerStyleOverrides( QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverride( presetName ) );
|
mComposerMap->setLayerStyleOverrides( QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverrides( presetName ) );
|
||||||
|
|
||||||
mComposerMap->cache();
|
mComposerMap->cache();
|
||||||
mComposerMap->update();
|
mComposerMap->update();
|
||||||
|
@ -599,7 +599,7 @@ QMap<QString, QString> QgsComposerMap::layerStyleOverridesToRender( const QgsExp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( QgsProject::instance()->mapThemeCollection()->hasMapTheme( presetName ) )
|
if ( QgsProject::instance()->mapThemeCollection()->hasMapTheme( presetName ) )
|
||||||
return QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverride( presetName );
|
return QgsProject::instance()->mapThemeCollection()->mapThemeStyleOverrides( presetName );
|
||||||
else
|
else
|
||||||
return QMap<QString, QString>();
|
return QMap<QString, QString>();
|
||||||
}
|
}
|
||||||
|
@ -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;
|
QMap<QString, QString> styleOverrides;
|
||||||
if ( !mMapThemes.contains( presetName ) )
|
if ( !mMapThemes.contains( presetName ) )
|
||||||
|
@ -174,7 +174,7 @@ class CORE_EXPORT QgsMapThemeCollection : public QObject
|
|||||||
* Get layer style overrides (for QgsMapSettings) of the visible layers for given map theme.
|
* Get layer style overrides (for QgsMapSettings) of the visible layers for given map theme.
|
||||||
* @note Added in QGIS 3.0
|
* @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
|
* Reads the map theme collection state from XML
|
||||||
|
Loading…
x
Reference in New Issue
Block a user