Add "min-max" naming in EID column for marker regions

This commit is contained in:
baldurk
2017-02-13 15:19:47 +00:00
parent 3841af5697
commit 99fc18e162
+4 -1
View File
@@ -52,7 +52,7 @@ EventBrowser::EventBrowser(CaptureContext &ctx, QWidget *parent)
clearBookmarks();
ui->events->header()->resizeSection(COL_EID, 45);
ui->events->header()->resizeSection(COL_EID, 80);
ui->events->header()->setSectionResizeMode(COL_NAME, QHeaderView::Stretch);
ui->events->header()->setSectionResizeMode(COL_EID, QHeaderView::Interactive);
@@ -173,6 +173,9 @@ uint EventBrowser::AddDrawcalls(QTreeWidgetItem *parent, const rdctype::array<Fe
lastEID = AddDrawcalls(child, draws[i].children);
if(lastEID > draws[i].eventID)
child->setText(COL_EID, QString("%1-%2").arg(draws[i].eventID).arg(lastEID));
if(lastEID == 0)
{
lastEID = draws[i].eventID;