MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / testMouseEvent

Method testMouseEvent

test/groot_test_base.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void GrootTestBase::testMouseEvent(QGraphicsView *view, QEvent::Type type, QPoint pos, Qt::MouseButton button,
26 Qt::KeyboardModifier modifier)
27{
28 auto event = new QMouseEvent(type, pos, view->viewport()->mapToGlobal(pos),
29 button, button, modifier);
30
31 QApplication::postEvent(view->viewport(), event);
32 QApplication::processEvents();
33}
34
35void GrootTestBase::testDragObject(QGraphicsView *view, const QPoint &screen_pos, const QPoint &pos_offset)
36{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected