debugger: hard-code "Display" and "Normal" as translatable

Task-number: QTCREATORBUG-3747
This commit is contained in:
hjk
2011-02-24 14:26:16 +01:00
parent 0c9914b17e
commit 0e9a2c1390

View File

@@ -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");