QmlDesigner: Ignore Image cell warning for Url column

Task-number: QDS-12157
Change-Id: Ia2a46ef878d522f6c5a08fb817c2ef1332cb113b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Shrief Gabr
2024-05-02 15:56:56 +03:00
parent 4cb9857293
commit a327f38d5e

View File

@@ -563,7 +563,10 @@ DataTypeWarning::Warning CollectionDetails::cellWarningCheck(int row, int column
if ((columnType == DataType::String || columnType == DataType::Real) && cellType == DataType::Integer) if ((columnType == DataType::String || columnType == DataType::Real) && cellType == DataType::Integer)
return DataTypeWarning::Warning::None; return DataTypeWarning::Warning::None;
if ((columnType == DataType::Url || columnType == DataType::Image) && cellType == DataType::String) if (columnType == DataType::Url && cellType == DataType::String)
return DataTypeWarning::Warning::None;
if (columnType == DataType::Image && (cellType == DataType::Url || cellType == DataType::String))
return DataTypeWarning::Warning::None; return DataTypeWarning::Warning::None;
if (columnType != cellType) if (columnType != cellType)