mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-19 10:31:07 +00:00
Use the correct role instead of a magic number.
This commit is contained in:
1 parent
68d6873302
commit
cad64db864
1 file changed
+1
-1
@@ -336,7 +336,7 @@ void PerformanceCounterSelection::SetSelectedCounters(const QList<GPUCounter> &c
|
||||
RDTreeWidgetItemIterator it(ui->counterTree);
|
||||
while(*it)
|
||||
{
|
||||
const QVariant id = (*it)->data(0, Qt::UserRole + 2);
|
||||
const QVariant id = (*it)->data(0, CounterIdRole);
|
||||
if(id.isValid())
|
||||
{
|
||||
const GPUCounter counter = (GPUCounter)id.toUInt();
|
||||
|
||||
Reference in new issue
Block a user