Core: Add FilePath based overloads to EditorManager::openEditor{,at}

Part of the overall FilePath migration. Keep the original version for
a while to allow using code to catch up.

Change-Id: Ia7c5ea14416a06e679e8661c0e4045981db87b9b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2021-05-25 06:52:00 +02:00
parent 925c49a1f1
commit 76db1e3746
21 changed files with 91 additions and 78 deletions

View File

@@ -571,7 +571,7 @@ void DiffEditorPluginPrivate::diffExternalFiles()
QString());
if (fileName1.isNull())
return;
if (EditorManager::skipOpeningBigTextFile(fileName1))
if (EditorManager::skipOpeningBigTextFile(FilePath::fromString(fileName1)))
return;
const QString fileName2 = QFileDialog::getOpenFileName(ICore::dialogParent(),
@@ -579,7 +579,7 @@ void DiffEditorPluginPrivate::diffExternalFiles()
QString());
if (fileName2.isNull())
return;
if (EditorManager::skipOpeningBigTextFile(fileName2))
if (EditorManager::skipOpeningBigTextFile(FilePath::fromString(fileName2)))
return;
const QString documentId = Constants::DIFF_EDITOR_PLUGIN