Vcs: Use more FilePath for file paths

Change-Id: I855cde65d034a9647972a7fddf1e8266d7ccfa88
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-07-30 16:46:27 +02:00
parent 17f907da9b
commit ff57cb548d
88 changed files with 1204 additions and 1159 deletions

View File

@@ -56,6 +56,7 @@
#include <QVBoxLayout>
using namespace Core;
using namespace Utils;
namespace Git {
namespace Internal {
@@ -139,13 +140,13 @@ BranchView::BranchView()
refreshCurrentRepository();
}
void BranchView::refreshIfSame(const QString &repository)
void BranchView::refreshIfSame(const FilePath &repository)
{
if (m_repository == repository)
refreshCurrentRepository();
}
void BranchView::refresh(const QString &repository, bool force)
void BranchView::refresh(const FilePath &repository, bool force)
{
if (m_repository == repository && !force)
return;
@@ -156,7 +157,7 @@ void BranchView::refresh(const QString &repository, bool force)
m_addAction->setToolTip(tr("Create Git Repository..."));
m_branchView->setEnabled(false);
} else {
m_repositoryLabel->setText(QDir::toNativeSeparators(m_repository));
m_repositoryLabel->setText(m_repository.toUserOutput());
m_repositoryLabel->setToolTip(GitPlugin::msgRepositoryLabel(m_repository));
m_addAction->setToolTip(tr("Add Branch..."));
m_branchView->setEnabled(true);