MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / activationKeys

Function activationKeys

pj_app/tests/key_sequence_watcher_test.cpp:19–22  ·  view source on GitHub ↗

The real activation keys. This is the single place in the tree that spells them out; the shipped code carries only the precomputed step values. Driving these keys through unlockSteps() end-to-end also verifies those constants.

Source from the content-addressed store, hash-verified

17// them out; the shipped code carries only the precomputed step values. Driving
18// these keys through unlockSteps() end-to-end also verifies those constants.
19std::vector<int> activationKeys() {
20 return {Qt::Key_Up, Qt::Key_Up, Qt::Key_Down, Qt::Key_Down, Qt::Key_Left,
21 Qt::Key_Right, Qt::Key_Left, Qt::Key_Right, Qt::Key_B, Qt::Key_A};
22}
23
24QKeyEvent makePress(int key, bool autorepeat = false) {
25 return QKeyEvent(QEvent::KeyPress, key, Qt::NoModifier, QString(), autorepeat);

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected