QmlDesigner: Fix a few more Qt deprecation related warnings

Change-Id: I245693e0aa58454f631b9150cd86f3034c5cfbe6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-06-09 09:32:42 +02:00
parent d93d1743fd
commit e98c523b3f
4 changed files with 13 additions and 13 deletions

View File

@@ -153,9 +153,9 @@ void TextureEditorView::changeValue(const QString &name)
} else {
// QVector*D(0, 0, 0) detects as null variant though it is valid value
if (castedValue.isValid()
&& (!castedValue.isNull() || castedValue.type() == QVariant::Vector2D
|| castedValue.type() == QVariant::Vector3D
|| castedValue.type() == QVariant::Vector4D)) {
&& (!castedValue.isNull() || castedValue.typeId() == QVariant::Vector2D
|| castedValue.typeId() == QVariant::Vector3D
|| castedValue.typeId() == QVariant::Vector4D)) {
commitVariantValueToModel(propertyName, castedValue);
}
}