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:
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
#include <utils/tooltip/tipcontents.h>
|
||||
|
||||
#include <QPoint>
|
||||
|
||||
@@ -144,7 +143,7 @@ void BaseHoverHandler::operateTooltip(TextEditorWidget *editorWidget, const QPoi
|
||||
if (m_toolTip.isEmpty())
|
||||
Utils::ToolTip::hide();
|
||||
else
|
||||
Utils::ToolTip::show(point, Utils::TextContent(m_toolTip), editorWidget);
|
||||
Utils::ToolTip::show(point, m_toolTip, editorWidget);
|
||||
}
|
||||
|
||||
} // namespace TextEditor
|
||||
|
||||
Reference in New Issue
Block a user