forked from qt-creator/qt-creator
TextEditor: move Link class to separate header in Utils
Link is a common class and is used across the plugins. Change-Id: Id92e47e1b8604316ca8b970804e57abaf404ec28 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -264,7 +264,7 @@ CppInclude::CppInclude(const Document::Include &includeFile) :
|
||||
helpCategory = TextEditor::HelpItem::Brief;
|
||||
helpIdCandidates = QStringList(fileName);
|
||||
helpMark = fileName;
|
||||
link = TextEditor::TextEditorWidget::Link(path);
|
||||
link = Utils::Link(path);
|
||||
tooltip = path;
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ CppMacro::CppMacro(const Macro ¯o)
|
||||
const QString macroName = QString::fromUtf8(macro.name(), macro.name().size());
|
||||
helpIdCandidates = QStringList(macroName);
|
||||
helpMark = macroName;
|
||||
link = TextEditor::TextEditorWidget::Link(macro.fileName(), macro.line());
|
||||
link = Utils::Link(macro.fileName(), macro.line());
|
||||
tooltip = macro.toStringWithLineBreaks();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user