Fix QgsVisibilityPresets method spelling

This commit is contained in:
Juergen E. Fischer 2015-08-29 10:48:11 +02:00
parent 44e2a99907
commit 5197e91bdc
3 changed files with 7 additions and 7 deletions

View File

@ -798,7 +798,7 @@ APP_EXPORT int main( int argc, char *argv[] )
//
// Priority of translation is:
// - command line
// - user secified in options dialog (with group checked on)
// - user specified in options dialog (with group checked on)
// - system locale
//
// When specifying from the command line it will change the user

View File

@ -166,7 +166,7 @@ void QgsVisibilityPresets::addPreset()
}
void QgsVisibilityPresets::presetTriggerred()
void QgsVisibilityPresets::presetTriggered()
{
QAction* actionPreset = qobject_cast<QAction*>( sender() );
if ( !actionPreset )
@ -175,7 +175,7 @@ void QgsVisibilityPresets::presetTriggerred()
applyState( actionPreset->text() );
}
void QgsVisibilityPresets::replaceTriggerred()
void QgsVisibilityPresets::replaceTriggered()
{
QAction* actionPreset = qobject_cast<QAction*>( sender() );
if ( !actionPreset )
@ -277,12 +277,12 @@ void QgsVisibilityPresets::menuAboutToShow()
a->setChecked( true );
hasCurrent = true;
}
connect( a, SIGNAL( triggered() ), this, SLOT( presetTriggerred() ) );
connect( a, SIGNAL( triggered() ), this, SLOT( presetTriggered() ) );
mMenuPresetActions.append( a );
QAction* replaceAction = new QAction( grpName, mReplaceMenu );
replaceAction->setEnabled( !a->isChecked() ); //can't replace current preset
connect( replaceAction, SIGNAL( triggered() ), this, SLOT( replaceTriggerred() ) );
connect( replaceAction, SIGNAL( triggered() ), this, SLOT( replaceTriggered() ) );
mReplaceMenu->addAction( replaceAction );
}
mMenu->insertActions( mMenuSeparator, mMenuPresetActions );

View File

@ -59,10 +59,10 @@ class APP_EXPORT QgsVisibilityPresets : public QObject
void addPreset();
//! Handles apply a preset to the map canvas
void presetTriggerred();
void presetTriggered();
//! Handles replacing a preset's state
void replaceTriggerred();
void replaceTriggered();
//! Handles removal of current preset from the project's collection
void removeCurrentPreset();