Skip to content

Commit

Permalink
Fix QgsVisibilityPresets method spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 29, 2015
1 parent 44e2a99 commit 5197e91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgsvisibilitypresets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void QgsVisibilityPresets::addPreset()
}


void QgsVisibilityPresets::presetTriggerred()
void QgsVisibilityPresets::presetTriggered()
{
QAction* actionPreset = qobject_cast<QAction*>( sender() );
if ( !actionPreset )
Expand All @@ -175,7 +175,7 @@ void QgsVisibilityPresets::presetTriggerred()
applyState( actionPreset->text() );
}

void QgsVisibilityPresets::replaceTriggerred()
void QgsVisibilityPresets::replaceTriggered()
{
QAction* actionPreset = qobject_cast<QAction*>( sender() );
if ( !actionPreset )
Expand Down Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsvisibilitypresets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5197e91

Please sign in to comment.