MCPcopy Create free account
hub / github.com/baldurk/renderdoc / OnEventChanged

Method OnEventChanged

qrenderdoc/Windows/PerformanceCounterViewer.cpp:378–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void PerformanceCounterViewer::OnEventChanged(uint32_t eventId)
379{
380 m_FilterModel->refresh(ui->syncViews->isChecked());
381 if(ui->syncViews->isChecked())
382 {
383 const int numItems = (int)ui->counterResults->model()->rowCount();
384 for(int i = 0; i < numItems; ++i)
385 {
386 QModelIndex index = ui->counterResults->model()->index(i, 0);
387 if(index.data(EIDRole).toUInt() == eventId)
388 {
389 ui->counterResults->setCurrentIndex(index);
390 ui->counterResults->scrollTo(index);
391 break;
392 }
393 }
394 }
395}
396
397void PerformanceCounterViewer::on_counterResults_doubleClicked(const QModelIndex &index)
398{

Callers

nothing calls this directly

Calls 6

scrollToMethod · 0.80
refreshMethod · 0.45
rowCountMethod · 0.45
modelMethod · 0.45
indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected