forked from qt-creator/qt-creator
debugger: hard-code "Display" and "Normal" as translatable
Task-number: QTCREATORBUG-3747
This commit is contained in:
@@ -1602,8 +1602,15 @@ void GdbEngine::handleHasPython(const GdbResponse &response)
|
|||||||
foreach (const GdbMi &dumper, dumpers.children()) {
|
foreach (const GdbMi &dumper, dumpers.children()) {
|
||||||
QByteArray type = dumper.findChild("type").data();
|
QByteArray type = dumper.findChild("type").data();
|
||||||
QStringList formats(tr("Raw structure"));
|
QStringList formats(tr("Raw structure"));
|
||||||
QString reported = _(dumper.findChild("formats").data());
|
foreach (const QByteArray &format,
|
||||||
formats.append(reported.split(_(","), QString::SkipEmptyParts));
|
dumper.findChild("formats").data().split(',')) {
|
||||||
|
if (format == "Normal")
|
||||||
|
formats.append(tr("Normal"));
|
||||||
|
else if (format == "Displayed")
|
||||||
|
formats.append(tr("Displayed"));
|
||||||
|
else if (!format.isEmpty())
|
||||||
|
formats.append(_(format));
|
||||||
|
}
|
||||||
watchHandler()->addTypeFormats(type, formats);
|
watchHandler()->addTypeFormats(type, formats);
|
||||||
}
|
}
|
||||||
const GdbMi hasInferiorThreadList = data.findChild("hasInferiorThreadList");
|
const GdbMi hasInferiorThreadList = data.findChild("hasInferiorThreadList");
|
||||||
|
Reference in New Issue
Block a user