GUI: Show paths with native separators in result tree.
GUI used to show paths with / separator which is not native separator in Windows. So lets convert shown paths to native separators before adding them to the GUI.
This commit is contained in:
parent
d5a6b02e9e
commit
c606dc8403
|
@ -156,7 +156,9 @@ QStandardItem *ResultsTree::AddBacktraceFiles(QStandardItem *parent,
|
|||
}
|
||||
|
||||
QList<QStandardItem*> list;
|
||||
list << CreateItem(item.file);
|
||||
// Ensure shown path is with native separators
|
||||
const QString file = QDir::toNativeSeparators(item.file);
|
||||
list << CreateItem(file);
|
||||
list << CreateItem(tr(item.severity.toLatin1()));
|
||||
list << CreateItem(QString("%1").arg(item.line));
|
||||
//TODO message has parameter names so we'll need changes to the core
|
||||
|
@ -334,6 +336,8 @@ QStandardItem *ResultsTree::EnsureFileItem(const QString &fullpath, bool hide)
|
|||
return item;
|
||||
}
|
||||
|
||||
// Ensure shown path is with native separators
|
||||
name = QDir::toNativeSeparators(name);
|
||||
item = CreateItem(name);
|
||||
item->setIcon(QIcon(":images/text-x-generic.png"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue