Skip to content

Commit

Permalink
Rename indx to index in some slots
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Nov 6, 2017
1 parent 966e2d6 commit 64ab28b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions python/gui/qgsoptionsdialogbase.sip
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.h
Expand Up @@ -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();
Expand Down
10 changes: 5 additions & 5 deletions src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsoptionsdialogbase.h
Expand Up @@ -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();

Expand Down

0 comments on commit 64ab28b

Please sign in to comment.