Skip to content

Commit

Permalink
Capitalization, code style
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 19, 2019
1 parent 45ae2ed commit 6bb0723
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/gui/qgsdatumtransformdialog.cpp
Expand Up @@ -36,13 +36,13 @@ QgsDatumTransformDialog::QgsDatumTransformDialog( const QgsCoordinateReferenceSy

mDatumTransformTableWidget->setColumnCount( 2 );
QStringList headers;
headers << tr( "Source transform" ) << tr( "Destination transform" ) ;
headers << tr( "Source Transform" ) << tr( "Destination Transform" ) ;
mDatumTransformTableWidget->setHorizontalHeaderLabels( headers );

mSourceProjectionSelectionWidget->setCrs( sourceCrs );
mDestinationProjectionSelectionWidget->setCrs( destinationCrs );

connect( mHideDeprecatedCheckBox, &QCheckBox::stateChanged, this, &QgsDatumTransformDialog::mHideDeprecatedCheckBox_stateChanged );
connect( mHideDeprecatedCheckBox, &QCheckBox::stateChanged, this, [ = ] { load(); } );
connect( mDatumTransformTableWidget, &QTableWidget::currentItemChanged, this, &QgsDatumTransformDialog::tableCurrentItemChanged );

connect( mSourceProjectionSelectionWidget, &QgsProjectionSelectionWidget::crsChanged, this, &QgsDatumTransformDialog::setSourceCrs );
Expand All @@ -67,7 +67,7 @@ QgsDatumTransformDialog::QgsDatumTransformDialog( const QgsCoordinateReferenceSy
load( selectedDatumTransforms );
}

void QgsDatumTransformDialog::load( const QPair<int, int> &selectedDatumTransforms )
void QgsDatumTransformDialog::load( QPair<int, int> selectedDatumTransforms )
{
mDatumTransformTableWidget->setRowCount( 0 );

Expand Down Expand Up @@ -262,11 +262,6 @@ bool QgsDatumTransformDialog::testGridShiftFileAvailability( QTableWidgetItem *i
return true;
}

void QgsDatumTransformDialog::mHideDeprecatedCheckBox_stateChanged( int )
{
load();
}

void QgsDatumTransformDialog::tableCurrentItemChanged( QTableWidgetItem *, QTableWidgetItem * )
{
int row = mDatumTransformTableWidget->currentRow();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsdatumtransformdialog.h
Expand Up @@ -58,7 +58,7 @@ class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumT
QPair< QPair<QgsCoordinateReferenceSystem, int>, QPair<QgsCoordinateReferenceSystem, int > > selectedDatumTransforms();

private slots:
void mHideDeprecatedCheckBox_stateChanged( int state );

void tableCurrentItemChanged( QTableWidgetItem *, QTableWidgetItem * );
void setSourceCrs( const QgsCoordinateReferenceSystem &sourceCrs );
void setDestinationCrs( const QgsCoordinateReferenceSystem &destinationCrs );
Expand Down

0 comments on commit 6bb0723

Please sign in to comment.