diff --git a/src/core/processing/models/qgsprocessingmodelalgorithm.cpp b/src/core/processing/models/qgsprocessingmodelalgorithm.cpp index e25bf4a1177..86fdf6f3f4b 100644 --- a/src/core/processing/models/qgsprocessingmodelalgorithm.cpp +++ b/src/core/processing/models/qgsprocessingmodelalgorithm.cpp @@ -368,7 +368,7 @@ QStringList QgsProcessingModelAlgorithm::asPythonCode( const QgsProcessing::Pyth fileDocString << QStringLiteral( "Model exported as python." ); fileDocString << QStringLiteral( "Name : %1" ).arg( displayName() ); fileDocString << QStringLiteral( "Group : %1" ).arg( group() ); - fileDocString << QStringLiteral( "With QGIS : %1" ).arg( Qgis::QGIS_VERSION_INT ); + fileDocString << QStringLiteral( "With QGIS : %1" ).arg( Qgis::versionInt() ); fileDocString << QStringLiteral( "\"\"\"" ); fileDocString << QString(); diff --git a/tests/src/analysis/testqgsprocessing.cpp b/tests/src/analysis/testqgsprocessing.cpp index e4185acd3d1..9885b34dfa9 100644 --- a/tests/src/analysis/testqgsprocessing.cpp +++ b/tests/src/analysis/testqgsprocessing.cpp @@ -7839,7 +7839,7 @@ void TestQgsProcessing::modelExecution() " return ''\n" "\n" " def createInstance(self):\n" - " return MyModel()\n" ).arg( Qgis::QGIS_VERSION_INT ).split( '\n' ); + " return MyModel()\n" ).arg( Qgis::versionInt() ).split( '\n' ); QCOMPARE( actualParts, expectedParts ); }