Use the correct role instead of a magic number.

This commit is contained in:
Matthäus G. Chajdas authored and Baldur Karlsson committed 2017-09-15 12:18:22 -07:00
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();