aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitsubmiteditorwidget.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-07-30 16:46:27 +0200
committerhjk <hjk@qt.io>2021-08-02 14:40:33 +0000
commitff57cb548d2c528a42fa2870b2486cddc08acfb7 (patch)
tree0c7f371818d436d79cd3d65fac1c98de4d2391bf /src/plugins/git/gitsubmiteditorwidget.cpp
parent17f907da9bd73d9b1515cbdd269c93f0061b7071 (diff)
Vcs: Use more FilePath for file paths
Change-Id: I855cde65d034a9647972a7fddf1e8266d7ccfa88 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitsubmiteditorwidget.cpp')
-rw-r--r--src/plugins/git/gitsubmiteditorwidget.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp
index 68507b6891..02328d2898 100644
--- a/src/plugins/git/gitsubmiteditorwidget.cpp
+++ b/src/plugins/git/gitsubmiteditorwidget.cpp
@@ -29,7 +29,9 @@
#include "logchangedialog.h"
#include <coreplugin/coreconstants.h>
+
#include <utils/completingtextedit.h>
+#include <utils/filepath.h>
#include <utils/theme/theme.h>
#include <utils/utilsicons.h>
@@ -41,6 +43,8 @@
#include <QVBoxLayout>
#include <QMenu>
+using namespace Utils;
+
namespace Git {
namespace Internal {
@@ -65,7 +69,7 @@ GitSubmitEditorWidget::GitSubmitEditorWidget() :
void GitSubmitEditorWidget::setPanelInfo(const GitSubmitEditorPanelInfo &info)
{
- m_gitSubmitPanelUi.repositoryLabel->setText(QDir::toNativeSeparators(info.repository));
+ m_gitSubmitPanelUi.repositoryLabel->setText(info.repository.toUserOutput());
if (info.branch.contains("(no branch)")) {
const QString errorColor =
Utils::creatorTheme()->color(Utils::Theme::TextColorError).name();
@@ -87,7 +91,7 @@ void GitSubmitEditorWidget::setHasUnmerged(bool e)
}
void GitSubmitEditorWidget::initialize(CommitType commitType,
- const QString &repository,
+ const FilePath &repository,
const GitSubmitEditorPanelData &data,
const GitSubmitEditorPanelInfo &info,
bool enablePush)
@@ -123,7 +127,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
}
}
-void GitSubmitEditorWidget::refreshLog(const QString &repository)
+void GitSubmitEditorWidget::refreshLog(const FilePath &repository)
{
if (m_logChangeWidget)
m_logChangeWidget->init(repository);