Skip to content
Permalink
Browse files

Fix QgsVisibilityPresets method spelling

  • Loading branch information
jef-n committed Aug 29, 2015
1 parent 44e2a99 commit 5197e91bdcb167ae83d1e3b4d9ddc4b19795d87f
Showing with 7 additions and 7 deletions.
  1. +1 −1 src/app/main.cpp
  2. +4 −4 src/app/qgsvisibilitypresets.cpp
  3. +2 −2 src/app/qgsvisibilitypresets.h
@@ -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
@@ -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 );
@@ -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();

0 comments on commit 5197e91

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