Index: sources/view/VEventSpy.cpp =================================================================== diff -u -r64d87d540594252e8039ab2595016d98f1e3cc28 -rfef971047be21dd255a497fbf54c170316d617a9 --- sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 64d87d540594252e8039ab2595016d98f1e3cc28) +++ sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision fef971047be21dd255a497fbf54c170316d617a9) @@ -22,6 +22,7 @@ #include "GuiGlobals.h" #include "Logger.h" +// #define SPY_MOUSE_EVENT using namespace View; VEventSpy::VEventSpy(QObject *) @@ -74,15 +75,22 @@ } /*! - * \brief VEventSpy::mouseEventSpy + * \brief VEventSpy::mouseEventSpy * \details Mouse event spy - * \param vEvent - mouse event - * \param typeName - mouse button type name + * 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 comment of the #define SPY_MOUSE_EVENT + * \param vEvent - mouse event + * \param vTypeName - mouse button type name */ // coco begin validated: this code has been manually tested. // 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) +void VEventSpy::mouseEventSpy(QEvent *vEvent, const QString &vTypeName) { +#ifndef SPY_MOUSE_EVENT + Q_UNUSED(vEvent) + Q_UNUSED(vTypeName) +#else QMouseEvent *mouseEvent = static_cast(vEvent); int x = mouseEvent->x(); int y = mouseEvent->y(); @@ -110,10 +118,11 @@ default : break; } - LOG_DEBUG( btn + typeName + mdf + + LOG_DEBUG( btn + vTypeName + mdf + QString(",%1,%2") .arg(x, 4, 10, QChar('0')) .arg(y, 4, 10, QChar('0'))); +#endif } // coco end @@ -129,7 +138,7 @@ /*! * \brief VEventSpy::touchEventSpy * \param vEvent - touch event - * \param typeName - The type of the QEvent which has been shortened e.g. tB: TouchBegin + * \param vTypeName - The type of the QEvent which has been shortened e.g. tB: TouchBegin */ // coco begin validated: this code has been manually tested. // the only intention of this code is to be used for EMC testing and has been tested and is working fine.