debugger: offer an option to show C-style escaped strings

Task-number: QTCREATORBUG-5667
Change-Id: I1c48fb19ece055c0b3a4b29ccee063cbce06f525
Reviewed-on: http://codereview.qt.nokia.com/2582
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-08-03 17:04:32 +02:00
committed by hjk
parent 04ef0ed45d
commit 79d604667b
3 changed files with 32 additions and 1 deletions

View File

@@ -1640,6 +1640,11 @@ void xxxx()
void testQString()
{
QString str1("Hello Qt"); // --> Value: "Hello Qt"
QString str2("Hello\nQt"); // --> Value: ""Hello\nQt"" (double quote not expected)
QString str3("Hello\rQt"); // --> Value: ""HelloQt"" (double quote and missing \r not expected)
QString str4("Hello\tQt"); // --> Value: "Hello\9Qt" (expected \t instead of \9)
QString str = "Hello ";
str += " big, ";
str += "\t";