forked from qt-creator/qt-creator
qmljs: add vector*d, quaternion, and matrix4x4 to code model
Added vector2d vector4d, quaternion and matrix4x4 to basic types and extended completions related to them in the code model. Task-number: QTCREATORBUG-9929 Change-Id: Iafdbdf5792f640e8eb29d866a372542ee07159a5 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -887,8 +887,16 @@ bool Check::visit(UiPublicMember *ast)
|
||||
preferedType = QLatin1String("'rect'");
|
||||
else if (init == _context->valueOwner()->qmlSizeObject())
|
||||
preferedType = QLatin1String("'size'");
|
||||
else if (init == _context->valueOwner()->qmlVector2DObject())
|
||||
preferedType = QLatin1String("'vector2d'");
|
||||
else if (init == _context->valueOwner()->qmlVector3DObject())
|
||||
preferedType = QLatin1String("'vector3d'");
|
||||
else if (init == _context->valueOwner()->qmlVector4DObject())
|
||||
preferedType = QLatin1String("'vector4d'");
|
||||
else if (init == _context->valueOwner()->qmlQuaternionObject())
|
||||
preferedType = QLatin1String("'quaternion'");
|
||||
else if (init == _context->valueOwner()->qmlMatrix4x4Object())
|
||||
preferedType = QLatin1String("'matrix4x4'");
|
||||
|
||||
if (!preferedType.isEmpty())
|
||||
addMessage(HintPreferNonVarPropertyType, ast->typeToken, preferedType);
|
||||
|
Reference in New Issue
Block a user