Hide the tooltip when we can't guess the value of the expression under cursor.

This commit is contained in:
Roberto Raggi
2010-01-28 15:35:00 +01:00
parent b4ccdab483
commit fc77c277be

View File

@@ -245,8 +245,8 @@ QString QmlHoverHandler::prettyPrint(const QmlJS::Interpreter::Value *value, Qml
QString typeId = interp->typeId(value);
if (typeId.isEmpty() || typeId == QLatin1String("undefined"))
typeId = QLatin1String("Unknown");
if (typeId == QLatin1String("undefined"))
typeId.clear();
return typeId;
}