Skip to content
Permalink
Browse files

Capitalization, code style

  • Loading branch information
nyalldawson committed Mar 12, 2019
1 parent 45ae2ed commit 6bb0723503b173ebce5246f45c9bdad82baab310
Showing with 4 additions and 9 deletions.
  1. +3 −8 src/gui/qgsdatumtransformdialog.cpp
  2. +1 −1 src/gui/qgsdatumtransformdialog.h
@@ -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 );
@@ -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 );

@@ -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();
@@ -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 );

0 comments on commit 6bb0723

Please sign in to comment.
You can’t perform that action at this time.