summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/texteditor.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-01-31 13:16:44 +0100
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-02-05 11:22:27 +0000
commitc5e43d86d12ce51c9035159a8acd86800fdf69bc (patch)
tree90030cd07fa47a25705cf485c333d06a90462660 /src/plugins/texteditor/texteditor.cpp
parent1a58a30685a7acb386989f8edbcd497d9472acf1 (diff)
downloadqt-creator-c5e43d86d12ce51c9035159a8acd86800fdf69bc.tar.gz
Clang: Make diagnostic tooltips consistent
Fix that triggering a diagnostic tooltip from the diagnostic location/range itself (underlined text) did not show the icon on the left and the actions/toolbuttons on the right in the tooltip. Instead of showing the tooltip content itself, request the tooltip for the corresponding text mark to get the extra decoration and actions. Change-Id: I5e94aca117a761f7a798d4f4b33db6e386e54d84 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditor.cpp')
-rw-r--r--src/plugins/texteditor/texteditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp
index acf9072bc2..977c224dce 100644
--- a/src/plugins/texteditor/texteditor.cpp
+++ b/src/plugins/texteditor/texteditor.cpp
@@ -3555,6 +3555,13 @@ QPoint TextEditorWidget::toolTipPosition(const QTextCursor &c) const
return cursorPos + QPoint(d->m_extraArea->width(), HostOsInfo::isWindowsHost() ? -24 : -16);
}
+void TextEditorWidget::showTextMarksToolTip(const QPoint &pos,
+ const TextMarks &marks,
+ const TextMark *mainTextMark) const
+{
+ d->showTextMarksToolTip(pos, marks, mainTextMark);
+}
+
void TextEditorWidgetPrivate::processTooltipRequest(const QTextCursor &c)
{
const QPoint toolTipPoint = q->toolTipPosition(c);