Commit 5f13608c authored by hjk's avatar hjk
Browse files

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

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2144
parent 5533fbbf
......@@ -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
......
......@@ -21,9 +21,11 @@ void testOptional()
optional<double> d;
optional<Large> l;
optional<std::string &> sr;
optional<std::string> s;
std::string as = "hallo";
i = 1;
sr = as;
s = as;
l = Large();
i = 2;
i = 3;
......
......@@ -1939,7 +1939,7 @@ int main(int argc, char *argv[])
testQHash1();
testSignalSlot(argc, argv);
QString hallo = "hallo";
QString hallo = "hallo\nwelt";
QStringList list;
list << "aaa" << "bbb" << "cc";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment