| 402 | } |
| 403 | |
| 404 | void 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 | |
| 414 | EventMonitor::~EventMonitor() |
| 415 | { |