Skip to content
Permalink
Browse files

Auto select operation in processing widget based on project transform…

… context
  • Loading branch information
nyalldawson committed Dec 20, 2019
1 parent 521080c commit 6bb1ad034b5efe073d46b685eca87d523880a641
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
@@ -3033,7 +3033,10 @@ void QgsProcessingCoordinateOperationWidgetWrapper::setSourceCrsParameterValue(

mSourceCrs = QgsProcessingUtils::variantToCrs( value, *context );
if ( mOperationWidget )
{
mOperationWidget->setSourceCrs( mSourceCrs );
mOperationWidget->setSelectedOperationUsingContext( context->transformContext() );
}
}

void QgsProcessingCoordinateOperationWidgetWrapper::setDestinationCrsParameterValue( const QVariant &value )
@@ -3051,7 +3054,10 @@ void QgsProcessingCoordinateOperationWidgetWrapper::setDestinationCrsParameterVa

mDestCrs = QgsProcessingUtils::variantToCrs( value, *context );
if ( mOperationWidget )
{
mOperationWidget->setDestinationCrs( mDestCrs );
mOperationWidget->setSelectedOperationUsingContext( context->transformContext() );
}
}

QString QgsProcessingCoordinateOperationWidgetWrapper::parameterType() const

0 comments on commit 6bb1ad0

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