Display length of QByteArray's in debugger pane

Task-number: QTCREATORBUG-30065
Change-Id: I155fe83d6d2956552aa0127caae3971c70a49551
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Xavier BESSON
2023-12-19 19:21:54 +01:00
committed by Xavier BESSON (Personal)
parent 2fe5b61aab
commit 6515f935d6

View File

@@ -753,7 +753,7 @@ QString decodeData(const QString &ba, const QString &encoding)
if (enc.quotes) {
const QChar doubleQuote('"');
result = doubleQuote + result + doubleQuote;
result = QString("%1 (%2)").arg(doubleQuote + result + doubleQuote).arg(result.size());
}
return result;
}