forked from qt-creator/qt-creator
TextEditor: Enable tooltips for textmarks
Adjust bookmark code, add tooltips for clang diagnostics. Change-Id: I489d499f5431fcb29f27611d4350298acb30baac Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -170,13 +170,6 @@ void BookmarksPlugin::editorOpened(IEditor *editor)
|
||||
m_bookmarkManager->toggleBookmark(editor->document()->filePath().toString(), line);
|
||||
});
|
||||
|
||||
|
||||
connect(widget, &TextEditorWidget::markTooltipRequested, m_bookmarkManager,
|
||||
[this, editor](TextEditorWidget *, const QPoint &pos, int line) {
|
||||
if (editor->document())
|
||||
m_bookmarkManager->handleBookmarkTooltipRequest(editor, pos, line);
|
||||
});
|
||||
|
||||
connect(widget, &TextEditorWidget::markContextMenuRequested,
|
||||
this, &BookmarksPlugin::requestContextMenu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user