MCPcopy Create free account
hub / github.com/NetHack/NetHack / fakeEvent

Method fakeEvent

win/Qt/qt_line.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void NetHackQtLineEdit::fakeEvent(int key, int ascii, Qt::KeyboardModifiers state)
32{
33 QKeyEvent fake(QEvent::KeyPress,key,state,QChar(ascii));
34 keyPressEvent(&fake);
35}
36
37} // namespace nethack_qt_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected