summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-06-16 13:38:24 +0200
committerDavid Schulz <david.schulz@qt.io>2022-06-17 04:22:23 +0000
commite052d759876900401aa72e8af026629bea32c161 (patch)
treebbe01ebfd730c769f766a0373db03f1640a54192 /src/plugins/vcsbase
parent3ab822739df615c81c5fc777fff28d92fc7ea5fe (diff)
downloadqt-creator-e052d759876900401aa72e8af026629bea32c161.tar.gz
Core: FilePathify WindowTitleHandler
Change-Id: I905a193e70b199cbbd483e76e14c7f9fd2b179ef Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/vcsbase')
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp
index b371c8b2f6..74edfd3dd3 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.cpp
+++ b/src/plugins/vcsbase/vcsbaseplugin.cpp
@@ -199,7 +199,7 @@ public:
explicit StateListener(QObject *parent);
~StateListener();
- static QString windowTitleVcsTopic(const QString &filePath);
+ static QString windowTitleVcsTopic(const FilePath &filePath);
signals:
void stateChanged(const VcsBase::Internal::State &s, IVersionControl *vc);
@@ -230,11 +230,11 @@ StateListener::~StateListener()
EditorManager::setWindowTitleVcsTopicHandler({});
}
-QString StateListener::windowTitleVcsTopic(const QString &filePath)
+QString StateListener::windowTitleVcsTopic(const FilePath &filePath)
{
FilePath searchPath;
if (!filePath.isEmpty()) {
- searchPath = FilePath::fromString(filePath).absolutePath();
+ searchPath = filePath.absolutePath();
} else {
// use single project's information if there is only one loaded.
const QList<Project *> projects = SessionManager::projects();