Commit 43265dd2 authored by hjk's avatar hjk
Browse files

debugger: re-introduce reminder

parent 89a97120
...@@ -509,6 +509,9 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const ...@@ -509,6 +509,9 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
if (role == Qt::DisplayRole) { if (role == Qt::DisplayRole) {
QString str = data->pending ? data->fileName : data->bpFileName; QString str = data->pending ? data->fileName : data->bpFileName;
str = QFileInfo(str).fileName(); str = QFileInfo(str).fileName();
// FIXME: better?
//if (data->bpMultiple && str.isEmpty() && !data->markerFileName.isEmpty())
// str = data->markerFileName;
str = str.isEmpty() ? empty : str; str = str.isEmpty() ? empty : str;
if (data->useFullPath) if (data->useFullPath)
str = "/.../" + str; str = "/.../" + str;
...@@ -519,6 +522,9 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const ...@@ -519,6 +522,9 @@ QVariant BreakHandler::data(const QModelIndex &mi, int role) const
break; break;
case 3: case 3:
if (role == Qt::DisplayRole) { if (role == Qt::DisplayRole) {
// FIXME: better?
//if (data->bpMultiple && str.isEmpty() && !data->markerFileName.isEmpty())
// str = data->markerLineNumber;
const QString str = data->pending ? data->lineNumber : data->bpLineNumber; const QString str = data->pending ? data->lineNumber : data->bpLineNumber;
return str.isEmpty() ? empty : str; return str.isEmpty() ? empty : str;
} }
......
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