MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / sendLeftClick

Function sendLeftClick

tests/test_editor.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void sendLeftClick(QWidget* viewport, const QPoint& pos) {
43 QMouseEvent press(QEvent::MouseButtonPress, QPointF(pos), QPointF(pos),
44 Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
45 QApplication::sendEvent(viewport, &press);
46 QMouseEvent release(QEvent::MouseButtonRelease, QPointF(pos), QPointF(pos),
47 Qt::LeftButton, Qt::NoButton, Qt::NoModifier);
48 QApplication::sendEvent(viewport, &release);
49}
50
51// 0x7D0 bytes of PEB-like data with recognizable values at key offsets
52static BufferProvider makeTestProvider() {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected