Skip to content
Permalink
Browse files

Add missing parameter dependancies for QgsProcessingParameterCoordina…

…teOperation
  • Loading branch information
nyalldawson committed Mar 3, 2020
1 parent 0fff933 commit 616504be599c31956c3a6af35f682f2cda56d30f
@@ -3344,6 +3344,8 @@ Returns the type name for the parameter class.

virtual QString asPythonString( QgsProcessing::PythonOutputType outputType = QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const;

virtual QStringList dependsOnOtherParameters() const;


virtual QVariantMap toVariantMap() const;

@@ -6130,6 +6130,16 @@ QString QgsProcessingParameterCoordinateOperation::asPythonString( QgsProcessing
return QString();
}

QStringList QgsProcessingParameterCoordinateOperation::dependsOnOtherParameters() const
{
QStringList res;
if ( !mSourceParameterName.isEmpty() )
res << mSourceParameterName;
if ( !mDestParameterName.isEmpty() )
res << mDestParameterName;
return res;
}

QVariantMap QgsProcessingParameterCoordinateOperation::toVariantMap() const
{
QVariantMap map = QgsProcessingParameterDefinition::toVariantMap();
@@ -3122,6 +3122,7 @@ class CORE_EXPORT QgsProcessingParameterCoordinateOperation : public QgsProcessi
QString valueAsPythonString( const QVariant &value, QgsProcessingContext &context ) const override;
QString asScriptCode() const override;
QString asPythonString( QgsProcessing::PythonOutputType outputType = QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
QStringList dependsOnOtherParameters() const override;

QVariantMap toVariantMap() const override;
bool fromVariantMap( const QVariantMap &map ) override;

0 comments on commit 616504b

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