forked from qt-creator/qt-creator
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user