Skip to content

Commit

Permalink
Flip some connects to new style
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 22, 2017
1 parent 4021490 commit f5a3967
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsmapthemes.cpp
Expand Up @@ -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 );
}


Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit f5a3967

Please sign in to comment.