forked from qt-creator/qt-creator
Core: FilePathify WindowTitleHandler
Change-Id: I905a193e70b199cbbd483e76e14c7f9fd2b179ef Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user