Index: sources/view/VEventSpy.cpp =================================================================== diff -u -r1c18f738693756ca1f0342c2cc158e32bc28f90b -r27331dcb133e4d400eef25d5595c3b277e79504c --- sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 1c18f738693756ca1f0342c2cc158e32bc28f90b) +++ sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 27331dcb133e4d400eef25d5595c3b277e79504c) @@ -23,6 +23,7 @@ #include "GuiGlobals.h" #include "FileHandler.h" #include "DeviceController.h" +#include "BluetoothInterface.h" // if needs to spy on the mouse events // (which is happening on the desktop only since there is not mouse attached to the device) @@ -215,10 +216,24 @@ firstEntry = false; QKeyEvent *keyEvent = static_cast(vEvent); - if (keyEvent->key() == Qt::Key_F12) { - QImage screenshotImage = Gui::_viewer->grabWindow(); // this has to be called in Gui Thread regarding the Qt doc - QString screenshotFileName = Storage::USB_Mount_Point + QString(Storage::Screenshot_Base_Path_Name) + currentDateTime + ".png"; - _DeviceController.doScreenshot(screenshotImage, screenshotFileName); + switch (keyEvent->key()) { + case Qt::Key_F12: { + QImage screenshotImage = Gui::_viewer->grabWindow(); // this has to be called in Gui Thread regarding the Qt doc + QString screenshotFileName = Storage::USB_Mount_Point + QString(Storage::Screenshot_Base_Path_Name) + currentDateTime + ".png"; + _DeviceController.doScreenshot(screenshotImage, screenshotFileName); } + break; + +#ifdef DEBUG_BCUFF_MIMIC + case Qt::Key_F11: { + static quint16 systolic, diastolic, pulserate ; + _BluetoothInterface.mimic( ++systolic, ++diastolic, ++pulserate); + } + break; +#endif + + default: + break; + } } // coco end