forked from qt-creator/qt-creator
Utils: Start simplification of tooltip handling
There's a bit too much unneeded flexibility in there, requiring extra boiler-plate code on the user side. Change-Id: I34d03838fb1cd3182fcbb93bf65158ebfc7e2bce Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
#include <texteditor/texteditor.h>
|
||||
#include <texteditor/helpitem.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
#include <utils/tooltip/tipcontents.h>
|
||||
|
||||
#include <QDir>
|
||||
#include <QList>
|
||||
@@ -373,9 +372,9 @@ void QmlJSHoverHandler::operateTooltip(TextEditorWidget *editorWidget, const QPo
|
||||
if (toolTip().isEmpty())
|
||||
Utils::ToolTip::hide();
|
||||
else if (m_colorTip.isValid())
|
||||
Utils::ToolTip::show(point, Utils::ColorContent(m_colorTip), editorWidget);
|
||||
Utils::ToolTip::show(point, m_colorTip, editorWidget);
|
||||
else
|
||||
Utils::ToolTip::show(point, Utils::TextContent(toolTip()), editorWidget);
|
||||
Utils::ToolTip::show(point, toolTip(), editorWidget);
|
||||
}
|
||||
|
||||
void QmlJSHoverHandler::prettyPrintTooltip(const QmlJS::Value *value,
|
||||
|
||||
Reference in New Issue
Block a user