Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
project properties: rename wfs slots to avoid autoconnect warning
  • Loading branch information
jef-n committed Jun 30, 2013
1 parent 1a07991 commit 093b007
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -354,13 +354,13 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
QStringList wfstDeleteLayerIdList = QgsProject::instance()->readListEntry( "WFSTLayers", "Delete" );

QSignalMapper *smPublied = new QSignalMapper( this );
connect( smPublied, SIGNAL( mapped( int ) ), this, SLOT( on_cbxWFSPublied_stateChanged( int ) ) );
connect( smPublied, SIGNAL( mapped( int ) ), this, SLOT( cbxWFSPubliedStateChanged( int ) ) );
QSignalMapper *smUpdate = new QSignalMapper( this );
connect( smUpdate, SIGNAL( mapped( int ) ), this, SLOT( on_cbxWFSUpdate_stateChanged( int ) ) );
connect( smUpdate, SIGNAL( mapped( int ) ), this, SLOT( cbxWFSUpdateStateChanged( int ) ) );
QSignalMapper *smInsert = new QSignalMapper( this );
connect( smInsert, SIGNAL( mapped( int ) ), this, SLOT( on_cbxWFSInsert_stateChanged( int ) ) );
connect( smInsert, SIGNAL( mapped( int ) ), this, SLOT( cbxWFSInsertStateChanged( int ) ) );
QSignalMapper *smDelete = new QSignalMapper( this );
connect( smDelete, SIGNAL( mapped( int ) ), this, SLOT( on_cbxWFSDelete_stateChanged( int ) ) );
connect( smDelete, SIGNAL( mapped( int ) ), this, SLOT( cbxWFSDeleteStateChanged( int ) ) );

twWFSLayers->setColumnCount( 5 );
twWFSLayers->horizontalHeader()->setVisible( true );
Expand Down Expand Up @@ -838,7 +838,7 @@ void QgsProjectProperties::on_cbxProjectionEnabled_toggled( bool onFlyEnabled )
updateEllipsoidUI( mEllipsoidIndex );
}

void QgsProjectProperties::on_cbxWFSPublied_stateChanged( int aIdx )
void QgsProjectProperties::cbxWFSPubliedStateChanged( int aIdx )
{
QCheckBox* cb = qobject_cast<QCheckBox *>( twWFSLayers->cellWidget( aIdx, 1 ) );
if ( cb && !cb->isChecked() )
Expand All @@ -849,7 +849,7 @@ void QgsProjectProperties::on_cbxWFSPublied_stateChanged( int aIdx )
}
}

void QgsProjectProperties::on_cbxWFSUpdate_stateChanged( int aIdx )
void QgsProjectProperties::cbxWFSUpdateStateChanged( int aIdx )
{
QCheckBox* cb = qobject_cast<QCheckBox *>( twWFSLayers->cellWidget( aIdx, 2 ) );
if ( cb && cb->isChecked() )
Expand All @@ -866,7 +866,7 @@ void QgsProjectProperties::on_cbxWFSUpdate_stateChanged( int aIdx )
}
}

void QgsProjectProperties::on_cbxWFSInsert_stateChanged( int aIdx )
void QgsProjectProperties::cbxWFSInsertStateChanged( int aIdx )
{
QCheckBox* cb = qobject_cast<QCheckBox *>( twWFSLayers->cellWidget( aIdx, 3 ) );
if ( cb && cb->isChecked() )
Expand All @@ -883,7 +883,7 @@ void QgsProjectProperties::on_cbxWFSInsert_stateChanged( int aIdx )
}
}

void QgsProjectProperties::on_cbxWFSDelete_stateChanged( int aIdx )
void QgsProjectProperties::cbxWFSDeleteStateChanged( int aIdx )
{
QCheckBox* cb = qobject_cast<QCheckBox *>( twWFSLayers->cellWidget( aIdx, 4 ) );
if ( cb && cb->isChecked() )
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgsprojectproperties.h
Expand Up @@ -135,10 +135,10 @@ class QgsProjectProperties : public QgsOptionsDialogBase, private Ui::QgsProject
/*!
* Slot to link WFS checkboxes
*/
void on_cbxWFSPublied_stateChanged( int aIdx );
void on_cbxWFSUpdate_stateChanged( int aIdx );
void on_cbxWFSInsert_stateChanged( int aIdx );
void on_cbxWFSDelete_stateChanged( int aIdx );
void cbxWFSPubliedStateChanged( int aIdx );
void cbxWFSUpdateStateChanged( int aIdx );
void cbxWFSInsertStateChanged( int aIdx );
void cbxWFSDeleteStateChanged( int aIdx );

/*!
* If user changes the CRS, set the corresponding map units
Expand Down

0 comments on commit 093b007

Please sign in to comment.