Skip to content
Permalink
Browse files

Flip some connects to new style

  • Loading branch information
nyalldawson committed Feb 22, 2017
1 parent 4021490 commit f5a396733dcc5c77ed3c7b3227bc65866c5a2498
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsmapthemes.cpp
@@ -52,7 +52,7 @@ QgsMapThemes::QgsMapThemes()

mActionRemoveCurrentPreset = mMenu->addAction( tr( "Remove Current Theme" ), this, SLOT( removeCurrentPreset() ) );

connect( mMenu, SIGNAL( aboutToShow() ), this, SLOT( menuAboutToShow() ) );
connect( mMenu, &QMenu::aboutToShow, this, &QgsMapThemes::menuAboutToShow );
}


@@ -183,11 +183,11 @@ void QgsMapThemes::menuAboutToShow()
a->setChecked( true );
hasCurrent = true;
}
connect( a, SIGNAL( triggered() ), this, SLOT( presetTriggered() ) );
connect( a, &QAction::triggered, this, &QgsMapThemes::presetTriggered );
mMenuPresetActions.append( a );

QAction* replaceAction = new QAction( grpName, mReplaceMenu );
connect( replaceAction, SIGNAL( triggered() ), this, SLOT( replaceTriggered() ) );
connect( replaceAction, &QAction::triggered, this, &QgsMapThemes::replaceTriggered );
mReplaceMenu->addAction( replaceAction );
}
mMenu->insertActions( mMenuSeparator, mMenuPresetActions );

0 comments on commit f5a3967

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