MCPcopy Create free account
hub / github.com/KDAB/GammaRay / eventSelected

Method eventSelected

plugins/eventmonitor/eventmonitor.cpp:404–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void EventMonitor::eventSelected(const QItemSelection &selection)
405{
406 if (selection.isEmpty())
407 return;
408 const QModelIndex index = selection.first().topLeft();
409 QVariant eventAttributes = QVariant(index.data(EventModelRole::AttributesRole).value<QVariantMap>());
410
411 m_eventPropertyModel->setObject(eventAttributes);
412}
413
414EventMonitor::~EventMonitor()
415{

Callers

nothing calls this directly

Calls 4

QVariantClass · 0.50
isEmptyMethod · 0.45
dataMethod · 0.45
setObjectMethod · 0.45

Tested by

no test coverage detected