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

Method eventFilter

plugins/quickinspector/quickitemmodel.cpp:445–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445bool QuickEventMonitor::eventFilter(QObject *obj, QEvent *event)
446{
447 switch (event->type()) {
448 // exclude some unsafe event types
449 case QEvent::DeferredDelete:
450 case QEvent::Destroy:
451
452 // exclude some event types which occur far too often and thus cost us bandwidth
453 case QEvent::HoverMove:
454 case QEvent::MouseMove:
455 case QEvent::TouchUpdate:
456 case QEvent::Wheel: // due to high frequency creation from touch events
457
458 // exclude event types that are unrelated to user interaction
459 case QEvent::MetaCall:
460 case QEvent::ChildAdded:
461 case QEvent::ChildPolished:
462 case QEvent::ChildRemoved:
463 case QEvent::Timer:
464
465 return false;
466
467 default:
468 break;
469 }
470
471 m_model->updateItem(qobject_cast<QQuickItem *>(obj), QuickItemModelRole::ItemEvent);
472 return false;
473}
474
475void QuickItemModel::emitPendingDataChanges()
476{

Callers

nothing calls this directly

Calls 2

updateItemMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected