Skip to content
Permalink
Browse files

[map themes] fix composer signal name

  • Loading branch information
nirvn committed Oct 27, 2016
1 parent 642e4a4 commit 8a809b8700d37e54b818638ff3922425886e5a59
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/app/composer/qgscomposermapwidget.cpp
  2. +1 −1 src/app/composer/qgscomposermapwidget.h
@@ -67,9 +67,9 @@ QgsComposerMapWidget::QgsComposerMapWidget( QgsComposerMap* composerMap )
// follow preset combo
mFollowVisibilityPresetCombo->setModel( new QStringListModel( mFollowVisibilityPresetCombo ) );
connect( mFollowVisibilityPresetCombo, SIGNAL( currentIndexChanged( int ) ), this, SLOT( followVisibilityPresetSelected( int ) ) );
connect( QgsProject::instance()->mapThemeCollection(), SIGNAL( presetsChanged() ),
this, SLOT( onPresetsChanged() ) );
onPresetsChanged();
connect( QgsProject::instance()->mapThemeCollection(), SIGNAL( mapThemesChanged() ),
this, SLOT( onMapThemesChanged() ) );
onMapThemesChanged();

// keep layers from preset button
QMenu* menuKeepLayers = new QMenu( this );
@@ -213,7 +213,7 @@ void QgsComposerMapWidget::keepLayersVisibilityPresetSelected()
}
}

void QgsComposerMapWidget::onPresetsChanged()
void QgsComposerMapWidget::onMapThemesChanged()
{
if ( QStringListModel* model = qobject_cast<QStringListModel*>( mFollowVisibilityPresetCombo->model() ) )
{
@@ -116,7 +116,7 @@ class QgsComposerMapWidget: public QgsComposerItemBaseWidget, private Ui::QgsCom
void followVisibilityPresetSelected( int currentIndex );
void keepLayersVisibilityPresetSelected();

void onPresetsChanged();
void onMapThemesChanged();

void updateOverviewFrameStyleFromWidget();
void cleanUpOverviewFrameStyleSelector( QgsPanelWidget* container );

0 comments on commit 8a809b8

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