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