0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

(GUI) Removed leading "../" from file names in BlocksList widget - now it is more compact and readable

This commit is contained in:
Victor Zarubkin 2017-06-05 21:27:55 +03:00
parent 089fcf1e31
commit 6e35381517

View File

@ -394,7 +394,7 @@ void EasyDescTreeWidget::build()
if (p.item == nullptr) if (p.item == nullptr)
{ {
p.item = new QTreeWidgetItem(); p.item = new QTreeWidgetItem();
p.item->setText(DESC_COL_FILE_LINE, desc->file()); p.item->setText(DESC_COL_FILE_LINE, QString(desc->file()).remove(QRegExp("^(\\.{2}\\\\+|\\/+)+")));
p.item->setText(DESC_COL_TYPE, "F"); p.item->setText(DESC_COL_TYPE, "F");
p.item->setToolTip(DESC_COL_TYPE, "File"); p.item->setToolTip(DESC_COL_TYPE, "File");
} }