debugger: move adding the double quotes for valueencoding==7 to the host side

This commit is contained in:
hjk
2009-10-15 13:57:51 +02:00
parent 8dc369bc2d
commit e1c8bb407f

View File

@@ -432,10 +432,11 @@ QString decodeData(const QByteArray &ba, int encoding)
return quoteUnprintableLatin1(QByteArray::fromBase64(ba));
}
case 7: { // %04x endoded 16 bit data
const QChar doubleQuote(QLatin1Char('"'));
const QByteArray decodedBa = QByteArray::fromHex(ba);
//qDebug() << quoteUnprintableLatin1(decodedBa) << "\n\n";
return QString::fromUtf16(reinterpret_cast<const ushort *>
(decodedBa.data()), decodedBa.size() / 2);
return doubleQuote + QString::fromUtf16(reinterpret_cast<const ushort *>
(decodedBa.data()), decodedBa.size() / 2) + doubleQuote;
}
}
return QCoreApplication::translate("Debugger", "<Encoding error>");