From 6e3538151744db6daaed88b0d01c05a5d50bc6ca Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Mon, 5 Jun 2017 21:27:55 +0300 Subject: [PATCH] (GUI) Removed leading "../" from file names in BlocksList widget - now it is more compact and readable --- profiler_gui/descriptors_tree_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler_gui/descriptors_tree_widget.cpp b/profiler_gui/descriptors_tree_widget.cpp index bba73a9..33d514f 100644 --- a/profiler_gui/descriptors_tree_widget.cpp +++ b/profiler_gui/descriptors_tree_widget.cpp @@ -394,7 +394,7 @@ void EasyDescTreeWidget::build() if (p.item == nullptr) { 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->setToolTip(DESC_COL_TYPE, "File"); }