forked from qt-creator/qt-creator
Utils: Consolidate Link::from{FilePath,String}
The input is more unparsed-string-ish in nature, so FilePath is not appropriate. Change-Id: I85efb5813b8f5fbbc4127be1c936d5487637b75c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -791,7 +791,7 @@ void QmlJSEditorWidget::findLinkAt(const QTextCursor &cursor,
|
||||
}
|
||||
|
||||
if (text.startsWith("https:/") || text.startsWith("http:/")) {
|
||||
Link link = Link::fromFilePath(FilePath::fromPathPart(text));
|
||||
Link link = Link::fromString(text);
|
||||
link.linkTextStart = literal->literalToken.begin();
|
||||
link.linkTextEnd = literal->literalToken.end();
|
||||
processLinkCallback(link);
|
||||
|
||||
Reference in New Issue
Block a user