mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix QgsVisibilityPresets method spelling
This commit is contained in:
parent
44e2a99907
commit
5197e91bdc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user