Skip to content

Commit 5197e91

Browse files
committed
Fix QgsVisibilityPresets method spelling
1 parent 44e2a99 commit 5197e91

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/app/main.cpp

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

src/app/qgsvisibilitypresets.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void QgsVisibilityPresets::addPreset()
166166
}
167167

168168

169-
void QgsVisibilityPresets::presetTriggerred()
169+
void QgsVisibilityPresets::presetTriggered()
170170
{
171171
QAction* actionPreset = qobject_cast<QAction*>( sender() );
172172
if ( !actionPreset )
@@ -175,7 +175,7 @@ void QgsVisibilityPresets::presetTriggerred()
175175
applyState( actionPreset->text() );
176176
}
177177

178-
void QgsVisibilityPresets::replaceTriggerred()
178+
void QgsVisibilityPresets::replaceTriggered()
179179
{
180180
QAction* actionPreset = qobject_cast<QAction*>( sender() );
181181
if ( !actionPreset )
@@ -277,12 +277,12 @@ void QgsVisibilityPresets::menuAboutToShow()
277277
a->setChecked( true );
278278
hasCurrent = true;
279279
}
280-
connect( a, SIGNAL( triggered() ), this, SLOT( presetTriggerred() ) );
280+
connect( a, SIGNAL( triggered() ), this, SLOT( presetTriggered() ) );
281281
mMenuPresetActions.append( a );
282282

283283
QAction* replaceAction = new QAction( grpName, mReplaceMenu );
284284
replaceAction->setEnabled( !a->isChecked() ); //can't replace current preset
285-
connect( replaceAction, SIGNAL( triggered() ), this, SLOT( replaceTriggerred() ) );
285+
connect( replaceAction, SIGNAL( triggered() ), this, SLOT( replaceTriggered() ) );
286286
mReplaceMenu->addAction( replaceAction );
287287
}
288288
mMenu->insertActions( mMenuSeparator, mMenuPresetActions );

src/app/qgsvisibilitypresets.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class APP_EXPORT QgsVisibilityPresets : public QObject
5959
void addPreset();
6060

6161
//! Handles apply a preset to the map canvas
62-
void presetTriggerred();
62+
void presetTriggered();
6363

6464
//! Handles replacing a preset's state
65-
void replaceTriggerred();
65+
void replaceTriggered();
6666

6767
//! Handles removal of current preset from the project's collection
6868
void removeCurrentPreset();

0 commit comments

Comments
 (0)