diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-11-01 17:02:02 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-11-02 08:11:14 +0000 |
commit | 195abefe7da8325816081c67062c89a11cf734da (patch) | |
tree | df1e26e51f079b09a358a9fe79da04ceb32da538 /src/plugins/cppeditor/cpptoolstestcase.cpp | |
parent | 4dac32d6610db6c2f0c99b1d966ab53f38cd26e9 (diff) | |
download | qt-creator-195abefe7da8325816081c67062c89a11cf734da.tar.gz |
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>
Diffstat (limited to 'src/plugins/cppeditor/cpptoolstestcase.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpptoolstestcase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpptoolstestcase.cpp b/src/plugins/cppeditor/cpptoolstestcase.cpp index ff32091197..2e48964bed 100644 --- a/src/plugins/cppeditor/cpptoolstestcase.cpp +++ b/src/plugins/cppeditor/cpptoolstestcase.cpp @@ -232,7 +232,8 @@ bool TestCase::succeededSoFar() const bool TestCase::openCppEditor(const QString &fileName, TextEditor::BaseTextEditor **editor, CppEditorWidget **editorWidget) { - if (const auto e = dynamic_cast<TextEditor::BaseTextEditor *>(Core::EditorManager::openEditor(fileName))) { + if (const auto e = dynamic_cast<TextEditor::BaseTextEditor *>( + Core::EditorManager::openEditor(FilePath::fromString(fileName)))) { if (editor) { *editor = e; TextEditor::StorageSettings s = e->textDocument()->storageSettings(); |