Commit 923c907d authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Fix slashes in breakpoint display.


Reviewed-by: default avatarArvid Ephraim Picciani <arvid.picciani@nokia.com>
parent deb2ccd2
......@@ -40,6 +40,7 @@
#include <texteditor/basetextmark.h>
#include <utils/qtcassert.h>
#include <QtCore/QDir>
#include <QtCore/QByteArray>
#include <QtCore/QFileInfo>
......@@ -338,7 +339,7 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
// str = data->markerFileName;
str = str.isEmpty() ? empty : str;
if (data->useFullPath)
str = "/.../" + str;
str = QDir::toNativeSeparators(QLatin1String("/.../") + str);
return str;
}
break;
......
......@@ -289,7 +289,7 @@ QString BreakpointData::toToolTip() const
<< "<tr><td>" << BreakHandler::tr("Internal Number:")
<< "</td><td>&mdash;</td><td>" << bpNumber << "</td></tr>"
<< "<tr><td>" << BreakHandler::tr("File Name:")
<< "</td><td>" << fileName << "</td><td>" << QDir::toNativeSeparators(bpFileName) << "</td></tr>"
<< "</td><td>" << QDir::toNativeSeparators(fileName) << "</td><td>" << QDir::toNativeSeparators(bpFileName) << "</td></tr>"
<< "<tr><td>" << BreakHandler::tr("Function Name:")
<< "</td><td>" << funcName << "</td><td>" << bpFuncName << "</td></tr>"
<< "<tr><td>" << BreakHandler::tr("Line Number:") << "</td><td>";
......
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