Utils: Cleanup of Tooltip interface

Change-Id: If4908e7a5d5ce749ff1e2efc7a026604821737be
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
hjk
2013-09-11 17:11:15 +02:00
parent ee574f58d6
commit 8098c085fe
11 changed files with 48 additions and 58 deletions

View File

@@ -378,11 +378,11 @@ void HoverHandler::reset()
void HoverHandler::operateTooltip(TextEditor::ITextEditor *editor, const QPoint &point)
{
if (toolTip().isEmpty())
Utils::ToolTip::instance()->hide();
Utils::ToolTip::hide();
else if (m_colorTip.isValid())
Utils::ToolTip::instance()->show(point, Utils::ColorContent(m_colorTip), editor->widget());
Utils::ToolTip::show(point, Utils::ColorContent(m_colorTip), editor->widget());
else
Utils::ToolTip::instance()->show(point, Utils::TextContent(toolTip()), editor->widget());
Utils::ToolTip::show(point, Utils::TextContent(toolTip()), editor->widget());
}
void HoverHandler::prettyPrintTooltip(const QmlJS::Value *value,