mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add "min-max" naming in EID column for marker regions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user