forked from qt-creator/qt-creator
Utils: filepathify Link
Change-Id: Ie62500bde139158e776f9698ee0ea00c2a113f93 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -110,7 +110,7 @@ void SymbolSupport::findLinkAt(TextEditor::TextDocument *document,
|
||||
if (!resolveTarget) {
|
||||
QTextCursor linkCursor = cursor;
|
||||
linkCursor.select(QTextCursor::WordUnderCursor);
|
||||
Utils::Link link(document->filePath().toString(),
|
||||
Utils::Link link(document->filePath(),
|
||||
linkCursor.blockNumber() + 1,
|
||||
linkCursor.positionInBlock());
|
||||
link.linkTextStart = linkCursor.selectionStart();
|
||||
|
||||
Reference in New Issue
Block a user