Core: filepathify file renaming

Change-Id: I3d4f39e34e65cde3df7b7c19570e3a54d0625d53
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
David Schulz
2021-06-11 14:34:34 +02:00
parent 55b91a7617
commit f66df921d7
32 changed files with 203 additions and 176 deletions

View File

@@ -63,7 +63,7 @@ public:
static bool removeDocument(IDocument *document);
static QList<IDocument *> modifiedDocuments();
static void renamedFile(const QString &from, const QString &to);
static void renamedFile(const Utils::FilePath &from, const Utils::FilePath &to);
static void expectFileChange(const Utils::FilePath &filePath);
static void unexpectFileChange(const Utils::FilePath &filePath);
@@ -148,9 +148,11 @@ signals:
lead to any editors to reload or any other editor manager actions. */
void filesChangedInternally(const QStringList &files);
/// emitted if all documents changed their name e.g. due to the file changing on disk
void allDocumentsRenamed(const QString &from, const QString &to);
void allDocumentsRenamed(const Utils::FilePath &from, const Utils::FilePath &to);
/// emitted if one document changed its name e.g. due to save as
void documentRenamed(Core::IDocument *document, const QString &from, const QString &to);
void documentRenamed(Core::IDocument *document,
const Utils::FilePath &from,
const Utils::FilePath &to);
void projectsDirectoryChanged(const Utils::FilePath &directory);
private: