Commit b046cb8a authored by ctraizet's avatar ctraizet
Browse files

ENH: remove complex image parameter from qgis descriptor

No related merge requests found
Showing with 2 additions and 6 deletions
+2 -6
...@@ -71,8 +71,6 @@ int main(int argc, char* argv[]) ...@@ -71,8 +71,6 @@ int main(int argc, char* argv[])
parameterTypeToString[ParameterType_OutputVectorData] = "QgsProcessingParameterVectorDestination"; parameterTypeToString[ParameterType_OutputVectorData] = "QgsProcessingParameterVectorDestination";
parameterTypeToString[ParameterType_OutputFilename] = "QgsProcessingParameterFileDestination"; parameterTypeToString[ParameterType_OutputFilename] = "QgsProcessingParameterFileDestination";
parameterTypeToString[ParameterType_Directory] = "QgsProcessingParameterFile"; parameterTypeToString[ParameterType_Directory] = "QgsProcessingParameterFile";
parameterTypeToString[ParameterType_ComplexInputImage] = "QgsProcessingParameterRasterLayer";
parameterTypeToString[ParameterType_ComplexOutputImage] = "QgsProcessingParameterRasterDestination";
// TODO // TODO
parameterTypeToString[ParameterType_StringList] = "QgsProcessingParameterString"; parameterTypeToString[ParameterType_StringList] = "QgsProcessingParameterString";
// ListView parameters are treated as plain string (QLineEdit) in qgis processing ui. // ListView parameters are treated as plain string (QLineEdit) in qgis processing ui.
...@@ -258,8 +256,7 @@ int main(int argc, char* argv[]) ...@@ -258,8 +256,7 @@ int main(int argc, char* argv[])
// setting default_value this way is an exception for ParameterType_StringList and ParameterType_String // setting default_value this way is an exception for ParameterType_StringList and ParameterType_String
default_value = "None|True"; default_value = "None|True";
} }
else if (type == ParameterType_InputImage || else if (type == ParameterType_InputImage)
type == ParameterType_ComplexInputImage)
{ {
// default is None and nothing to add to dFile // default is None and nothing to add to dFile
} }
...@@ -285,8 +282,7 @@ int main(int argc, char* argv[]) ...@@ -285,8 +282,7 @@ int main(int argc, char* argv[])
} }
else if(type == ParameterType_OutputVectorData || else if(type == ParameterType_OutputVectorData ||
type == ParameterType_OutputImage || type == ParameterType_OutputImage ||
type == ParameterType_OutputFilename || type == ParameterType_OutputFilename)
type == ParameterType_ComplexOutputImage)
{ {
// No need for default_value, optional and extra fields in dFile. // No need for default_value, optional and extra fields in dFile.
// If parameter is a destination type. qgis_type|name|description is enough. // If parameter is a destination type. qgis_type|name|description is enough.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment