forked from qt-creator/qt-creator
Hide the tooltip when we can't guess the value of the expression under cursor.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user