Index: sources/view/VEventSpy.cpp =================================================================== diff -u -r12e7b6dda53cf8db7707c7fa55dcf6137e7d6997 -r605815f54dfac948ada786080f55d1b6e7a0d47b --- sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 12e7b6dda53cf8db7707c7fa55dcf6137e7d6997) +++ sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 605815f54dfac948ada786080f55d1b6e7a0d47b) @@ -22,6 +22,11 @@ #include "GuiGlobals.h" #include "Logger.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) +// remove the #define comment line below. +// #define SPY_MOUSE_EVENT + using namespace View; VEventSpy::VEventSpy(QObject *) @@ -83,6 +88,10 @@ // the only intention of this code is to be used for EMC testing and has been tested and is working fine. void VEventSpy::mouseEventSpy(QEvent *vEvent, const QString &typeName) { +#ifndef SPY_MOUSE_EVENT + Q_UNUSED(vEvent) + Q_UNUSED(typeName) +#else QMouseEvent *mouseEvent = static_cast(vEvent); int x = mouseEvent->x(); int y = mouseEvent->y(); @@ -114,6 +123,7 @@ QString(",%1,%2") .arg(x, 4, 10, QChar('0')) .arg(y, 4, 10, QChar('0'))); +#endif } // coco end