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:
Fawzi Mohamed
2013-08-20 18:15:05 +02:00
parent 8f19fd60de
commit 30ff6da868
5 changed files with 113 additions and 0 deletions

View File

@@ -246,8 +246,12 @@ bool Highlighter::maybeQmlBuiltinType(const QStringRef &text) const
return true;
else if (ch == QLatin1Char('l') && text == QLatin1String("list"))
return true;
else if (ch == QLatin1Char('m') && text == QLatin1String("matrix4x4"))
return true;
else if (ch == QLatin1Char('p') && text == QLatin1String("point"))
return true;
else if (ch == QLatin1Char('q') && text == QLatin1String("quaternion"))
return true;
else if (ch == QLatin1Char('r') && text == QLatin1String("real"))
return true;
else if (ch == QLatin1Char('r') && text == QLatin1String("rect"))
@@ -264,8 +268,12 @@ bool Highlighter::maybeQmlBuiltinType(const QStringRef &text) const
return true;
else if (ch == QLatin1Char('v') && text == QLatin1String("var"))
return true;
else if (ch == QLatin1Char('v') && text == QLatin1String("vector2d"))
return true;
else if (ch == QLatin1Char('v') && text == QLatin1String("vector3d"))
return true;
else if (ch == QLatin1Char('v') && text == QLatin1String("vector4d"))
return true;
else
return false;
}