forked from qt-creator/qt-creator
EditorManager: Remove QString openEditor(At) overloads
In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -569,10 +569,11 @@ void CallgrindToolPrivate::selectFunction(const Function *func)
|
||||
if (!item || item != func)
|
||||
m_stackBrowser.select(func);
|
||||
|
||||
if (QFile::exists(func->file())) {
|
||||
const auto filePath = FilePath::fromString(func->file());
|
||||
if (filePath.exists()) {
|
||||
///TODO: custom position support?
|
||||
int line = func->lineNumber();
|
||||
EditorManager::openEditorAt(func->file(), qMax(line, 0));
|
||||
EditorManager::openEditorAt({filePath, qMax(line, 0)});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user