Rename indx to index in some slots

This commit is contained in:
Borys Jurgiel 2017-11-06 16:37:27 +01:00
parent 966e2d6639
commit 64ab28bf59
4 changed files with 10 additions and 10 deletions

View File

@ -128,8 +128,8 @@ class QgsOptionsDialogBase : QDialog
protected slots:
virtual void updateOptionsListVerticalTabs();
virtual void optionsStackedWidget_CurrentChanged( int indx );
virtual void optionsStackedWidget_WidgetRemoved( int indx );
virtual void optionsStackedWidget_CurrentChanged( int index );
virtual void optionsStackedWidget_WidgetRemoved( int index );
void warnAboutMissingObjects();

View File

@ -172,7 +172,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
void showHelp();
//! Reimplement QgsOptionsDialogBase method to prevent modifying the tab list by signals from the stacked widget
void optionsStackedWidget_CurrentChanged( int indx ) override { Q_UNUSED( indx ) };
void optionsStackedWidget_CurrentChanged( int index ) override { Q_UNUSED( index ) };
//! Only show plugins from selected repository (e.g. for inspection)
void setRepositoryFilter();

View File

@ -356,24 +356,24 @@ void QgsOptionsDialogBase::updateOptionsListVerticalTabs()
mOptListWidget->setWordWrap( true );
}
void QgsOptionsDialogBase::optionsStackedWidget_CurrentChanged( int indx )
void QgsOptionsDialogBase::optionsStackedWidget_CurrentChanged( int index )
{
mOptListWidget->blockSignals( true );
mOptListWidget->setCurrentRow( indx );
mOptListWidget->setCurrentRow( index );
mOptListWidget->blockSignals( false );
updateWindowTitle();
}
void QgsOptionsDialogBase::optionsStackedWidget_WidgetRemoved( int indx )
void QgsOptionsDialogBase::optionsStackedWidget_WidgetRemoved( int index )
{
// will need to take item first, if widgets are set for item in future
delete mOptListWidget->item( indx );
delete mOptListWidget->item( index );
QList<QPair< QgsSearchHighlightOptionWidget *, int > >::iterator it = mRegisteredSearchWidgets.begin();
while ( it != mRegisteredSearchWidgets.end() )
{
if ( ( *it ).second == indx )
if ( ( *it ).second == index )
it = mRegisteredSearchWidgets.erase( it );
else
++it;

View File

@ -159,8 +159,8 @@ class GUI_EXPORT QgsOptionsDialogBase : public QDialog
protected slots:
virtual void updateOptionsListVerticalTabs();
virtual void optionsStackedWidget_CurrentChanged( int indx );
virtual void optionsStackedWidget_WidgetRemoved( int indx );
virtual void optionsStackedWidget_CurrentChanged( int index );
virtual void optionsStackedWidget_WidgetRemoved( int index );
void warnAboutMissingObjects();