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);
|
QString typeId = interp->typeId(value);
|
||||||
|
|
||||||
if (typeId.isEmpty() || typeId == QLatin1String("undefined"))
|
if (typeId == QLatin1String("undefined"))
|
||||||
typeId = QLatin1String("Unknown");
|
typeId.clear();
|
||||||
|
|
||||||
return typeId;
|
return typeId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user