aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-08-26 13:20:14 +0200
committerhjk <[email protected]>2010-08-26 13:21:47 +0200
commit5f13608c61e0d4f3e38b15a95c1b1e0480062de4 (patch)
treeaba4b5e6f2801dcb1cdd8122c6133f1152c30af7 /src/plugins/debugger
parent5533fbbf6b864183367851ae5bd37072c4c276de (diff)
debugger: replace \n by \\n in locals & watchers
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2144
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/watchhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 7b952585dcc..6c58fa0f588 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -448,7 +448,9 @@ static inline QString formattedValue(const WatchData &data, int format)
return reformatInteger(data.value.toULongLong(), format);
return reformatInteger(data.value.toLongLong(), format);
}
- return data.value;
+ QString result = data.value;
+ result.replace(QLatin1Char('\n'), QLatin1String("\\n"));
+ return result;
}
bool WatchModel::canFetchMore(const QModelIndex &index) const