From 5197e91bdcb167ae83d1e3b4d9ddc4b19795d87f Mon Sep 17 00:00:00 2001 From: "Juergen E. Fischer" Date: Sat, 29 Aug 2015 10:48:11 +0200 Subject: [PATCH] Fix QgsVisibilityPresets method spelling --- src/app/main.cpp | 2 +- src/app/qgsvisibilitypresets.cpp | 8 ++++---- src/app/qgsvisibilitypresets.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 59247efd571..0a0545aabec 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -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 diff --git a/src/app/qgsvisibilitypresets.cpp b/src/app/qgsvisibilitypresets.cpp index f43043ac536..16d1130eb80 100644 --- a/src/app/qgsvisibilitypresets.cpp +++ b/src/app/qgsvisibilitypresets.cpp @@ -166,7 +166,7 @@ void QgsVisibilityPresets::addPreset() } -void QgsVisibilityPresets::presetTriggerred() +void QgsVisibilityPresets::presetTriggered() { QAction* actionPreset = qobject_cast( sender() ); if ( !actionPreset ) @@ -175,7 +175,7 @@ void QgsVisibilityPresets::presetTriggerred() applyState( actionPreset->text() ); } -void QgsVisibilityPresets::replaceTriggerred() +void QgsVisibilityPresets::replaceTriggered() { QAction* actionPreset = qobject_cast( 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 ); diff --git a/src/app/qgsvisibilitypresets.h b/src/app/qgsvisibilitypresets.h index 303c0f08c23..c079816c3e2 100644 --- a/src/app/qgsvisibilitypresets.h +++ b/src/app/qgsvisibilitypresets.h @@ -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();