debugger: replace \n by \\n in locals & watchers

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2144
This commit is contained in:
hjk
2010-08-26 13:20:14 +02:00
parent 5533fbbf6b
commit 5f13608c61
3 changed files with 6 additions and 2 deletions

View File

@@ -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