From fc77c277be639021c81172c199dc949ebb419d5d Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Thu, 28 Jan 2010 15:35:00 +0100 Subject: [PATCH] Hide the tooltip when we can't guess the value of the expression under cursor. --- src/plugins/qmljseditor/qmlhoverhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmljseditor/qmlhoverhandler.cpp b/src/plugins/qmljseditor/qmlhoverhandler.cpp index 1ac1094bef7..79165eafbcc 100644 --- a/src/plugins/qmljseditor/qmlhoverhandler.cpp +++ b/src/plugins/qmljseditor/qmlhoverhandler.cpp @@ -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; } -- GitLab