summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerprotocol.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-07-04 13:11:23 +0200
committerhjk <hjk@qt.io>2022-07-07 08:52:11 +0000
commitd3786a895bb13ef0588efd9bb438fe666dc6bd7e (patch)
tree87529ded4de7a3cbe1bd5c6b0d25f8fe9f742a24 /src/plugins/debugger/debuggerprotocol.cpp
parent7f94e68b748d3d8e6d0c99358b2eb8019beaf75f (diff)
downloadqt-creator-d3786a895bb13ef0588efd9bb438fe666dc6bd7e.tar.gz
Debugger: Use some Tr::tr in WatchModel related classes
Change-Id: I1fcd0c5f342da4fd5ff52c19eb9f3f20a9bdcc5b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
-rw-r--r--src/plugins/debugger/debuggerprotocol.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp
index 9c671c1414..922a5c1e7f 100644
--- a/src/plugins/debugger/debuggerprotocol.cpp
+++ b/src/plugins/debugger/debuggerprotocol.cpp
@@ -24,6 +24,7 @@
****************************************************************************/
#include "debuggerprotocol.h"
+#include "debuggertr.h"
#include <QCoreApplication>
#include <QDateTime>
@@ -640,31 +641,31 @@ QString decodeData(const QString &ba, const QString &encoding)
return quoteUnprintableLatin1(ba); // The common case.
if (encoding == "empty")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<empty>");
+ return Tr::tr("<empty>");
if (encoding == "minimumitemcount")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<at least %n items>", nullptr, ba.toInt());
+ return Tr::tr("<at least %n items>", nullptr, ba.toInt());
if (encoding == "undefined")
return QLatin1String("Undefined");
if (encoding == "null")
return QLatin1String("Null");
if (encoding == "itemcount")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<%n items>", nullptr, ba.toInt());
+ return Tr::tr("<%n items>", nullptr, ba.toInt());
if (encoding == "notaccessible")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<not accessible>");
+ return Tr::tr("<not accessible>");
if (encoding == "optimizedout")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<optimized out>");
+ return Tr::tr("<optimized out>");
if (encoding == "nullreference")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<null reference>");
+ return Tr::tr("<null reference>");
if (encoding == "emptystructure")
return QLatin1String("{...}");
if (encoding == "uninitialized")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<uninitialized>");
+ return Tr::tr("<uninitialized>");
if (encoding == "invalid")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<invalid>");
+ return Tr::tr("<invalid>");
if (encoding == "notcallable")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<not callable>");
+ return Tr::tr("<not callable>");
if (encoding == "outofscope")
- return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<out of scope>");
+ return Tr::tr("<out of scope>");
DebuggerEncoding enc(encoding);
QString result;
@@ -781,7 +782,7 @@ QString decodeData(const QString &ba, const QString &encoding)
return dateTime.toString();
}
qDebug() << "ENCODING ERROR: " << enc.type;
- return QCoreApplication::translate("Debugger", "<Encoding error>");
+ return Tr::tr("<Encoding error>");
}
if (enc.quotes) {