forked from qt-creator/qt-creator
Utils: Cleanup of Tooltip interface
Change-Id: If4908e7a5d5ce749ff1e2efc7a026604821737be Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user