Commit 9902ed2b authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS tooltips: Avoid unhelpful tooltips.

Saying 'unknown' or 'undefined' isn't very useful.

Change-Id: I130013a8f025ebc5eb984358f269fdf8a23aae92
Reviewed-by: default avatarRoberto Raggi <>
parent d48087d1
......@@ -305,10 +305,11 @@ void HoverHandler::prettyPrintTooltip(const QmlJS::Value *value,
if (toolTip().isEmpty()) {
QString typeId = context->valueOwner()->typeId(value);
if (typeId != QLatin1String("undefined"))
if (!value->asUndefinedValue() && !value->asUnknownValue()) {
const QString typeId = context->valueOwner()->typeId(value);
// if node refers to a property, its name and defining object are returned - otherwise zero
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment