summaryrefslogtreecommitdiff
path: root/src/plugins/git/gerrit/authenticationdialog.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2022-10-06 14:05:43 +0200
committerhjk <hjk@qt.io>2022-10-06 12:32:58 +0000
commit928a7d2087406abef2b076705ba4aa51b8ef3c92 (patch)
treedcceff7a811fde4771966d874b14764e611ba7a0 /src/plugins/git/gerrit/authenticationdialog.cpp
parentb8efc2f14de4859409fef57f58e2b813e72bc510 (diff)
downloadqt-creator-928a7d2087406abef2b076705ba4aa51b8ef3c92.tar.gz
Git: Convert to Tr::tr
Change-Id: I7fb1753109a9263c70c01713f5f4895db6b73662 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/git/gerrit/authenticationdialog.cpp')
-rw-r--r--src/plugins/git/gerrit/authenticationdialog.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/plugins/git/gerrit/authenticationdialog.cpp b/src/plugins/git/gerrit/authenticationdialog.cpp
index a12c62f2b0..3dacd0d271 100644
--- a/src/plugins/git/gerrit/authenticationdialog.cpp
+++ b/src/plugins/git/gerrit/authenticationdialog.cpp
@@ -5,6 +5,8 @@
#include "gerritserver.h"
+#include "../gittr.h"
+
#include <utils/fileutils.h>
#include <utils/hostosinfo.h>
#include <utils/layoutbuilder.h>
@@ -52,11 +54,11 @@ static bool replaceEntry(QString &line, const QString &type, const QString &valu
AuthenticationDialog::AuthenticationDialog(GerritServer *server)
: m_server(server)
{
- setWindowTitle(tr("Authentication"));
+ setWindowTitle(Git::Tr::tr("Authentication"));
resize(400, 334);
// FIXME: Take html out of this translatable string.
- const QString desc = tr(
+ const QString desc = Git::Tr::tr(
"<html><head/><body><p>Gerrit server with HTTP was detected, but you need "
"to set up credentials for it.</p><p>To get your password, "
"<a href=\"LINK_PLACEHOLDER\"><span style=\" text-decoration: "
@@ -90,16 +92,16 @@ AuthenticationDialog::AuthenticationDialog(GerritServer *server)
Column {
descriptionLabel,
Form {
- tr("Server:"), serverLineEdit, br,
- tr("&User:"), m_userLineEdit, br,
- tr("&Password:"), m_passwordLineEdit, br,
+ Git::Tr::tr("Server:"), serverLineEdit, br,
+ Git::Tr::tr("&User:"), m_userLineEdit, br,
+ Git::Tr::tr("&Password:"), m_passwordLineEdit, br,
},
m_buttonBox,
}.attachTo(this);
readExistingConf();
- QPushButton *anonymous = m_buttonBox->addButton(tr("Anonymous"), QDialogButtonBox::AcceptRole);
+ QPushButton *anonymous = m_buttonBox->addButton(Git::Tr::tr("Anonymous"), QDialogButtonBox::AcceptRole);
connect(m_buttonBox, &QDialogButtonBox::clicked,
this, [this, anonymous](QAbstractButton *button) {
if (button == anonymous)