diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-08 11:15:14 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2023-02-08 11:08:48 +0000 |
commit | 48affa1889ab7285ac84a50bd2df34f50c2b1bfb (patch) | |
tree | 865a7c9a8a0c0457e5e4ec83fe905fc11c659f50 /src/plugins/git | |
parent | ccbee9bf42a934a81ac06181e09a77b530ee765e (diff) | |
download | qt-creator-48affa1889ab7285ac84a50bd2df34f50c2b1bfb.tar.gz |
Translations: Remove header includes of *tr.h in .h files
The wrong Tr::tr could be executed by code indirectly including a *tr.h
file from another module.
To Translate in a header file, use QCoreApplication::tr().
Change-Id: I30e67245991d2c2f0eeb01ab356555bdb9841af0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/git')
-rw-r--r-- | src/plugins/git/gerrit/gerritserver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/gerritserver.cpp b/src/plugins/git/gerrit/gerritserver.cpp index 1ac7a64993..a02174b205 100644 --- a/src/plugins/git/gerrit/gerritserver.cpp +++ b/src/plugins/git/gerrit/gerritserver.cpp @@ -5,6 +5,7 @@ #include "gerritparameters.h" #include "gerritserver.h" #include "../gitclient.h" +#include "../gittr.h" #include <coreplugin/icore.h> @@ -281,8 +282,8 @@ bool GerritServer::resolveRoot() case CertificateError: if (QMessageBox::question( Core::ICore::dialogParent(), - Tr::tr("Certificate Error"), - Tr::tr( + ::Git::Tr::tr("Certificate Error"), + ::Git::Tr::tr( "Server certificate for %1 cannot be authenticated.\n" "Do you want to disable SSL verification for this server?\n" "Note: This can expose you to man-in-the-middle attack.") |