diff options
author | hjk <hjk@qt.io> | 2021-07-29 09:31:09 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-07-29 13:20:23 +0000 |
commit | edcedabed99849bd89022890b23a199ebb468ba5 (patch) | |
tree | 6f4dd9f214aac0ddc4172e6e87bb4f2e7319ceed /src/plugins/vcsbase/vcsbaseplugin.cpp | |
parent | 69c6c9f7d5d585cb01ccbe6f9c7a14fc6420a3e2 (diff) | |
download | qt-creator-edcedabed99849bd89022890b23a199ebb468ba5.tar.gz |
Vcs: Use FilePath in IVersionControl API
Adapt first level of users.
Change-Id: Ifcd7bff45631ff3b9e26a9e3176daa6cf0cf2e56
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 05e3557e21..ffa1e51ad1 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -241,7 +241,7 @@ QString StateListener::windowTitleVcsTopic(const QString &filePath) QString topLevelPath; IVersionControl *vc = VcsManager::findVersionControlForDirectory( searchPath, &topLevelPath); - return (vc && !topLevelPath.isEmpty()) ? vc->vcsTopic(topLevelPath) : QString(); + return (vc && !topLevelPath.isEmpty()) ? vc->vcsTopic(FilePath::fromString(topLevelPath)) : QString(); } static inline QString displayNameOfEditor(const QString &fileName) @@ -657,7 +657,7 @@ void VcsBasePluginPrivate::createRepository() return; } while (true); // Create - const bool rc = vcsCreateRepository(directory); + const bool rc = vcsCreateRepository(FilePath::fromString(directory)); const QString nativeDir = QDir::toNativeSeparators(directory); if (rc) { QMessageBox::information(mw, tr("Repository Created"), |