Index: denali.pro.user =================================================================== diff -u -r06d10ee1174f0947a01087554f3da3109b47aef6 -rda52c90a17adea2160ac93042e0632a4cda46b1a --- denali.pro.user (.../denali.pro.user) (revision 06d10ee1174f0947a01087554f3da3109b47aef6) +++ denali.pro.user (.../denali.pro.user) (revision da52c90a17adea2160ac93042e0632a4cda46b1a) @@ -1,6 +1,6 @@ - + EnvironmentId @@ -100,11 +100,11 @@ qmake QtProjectManager.QMakeBuildStep - true + false false false - true + false true @@ -160,7 +160,7 @@ false false - true + false true @@ -1174,7 +1174,7 @@ true false false - false + true /home/denali/Projects/tmp/build/denali-Desktop_Qt_5_12_5_GCC_64bit-Debug @@ -1187,7 +1187,7 @@ Qt 5.12.5 (iMX8) Qt 5.12.5 (iMX8) {5d6458ef-f917-4aef-a092-c77bbe106149} - 0 + 1 0 0 @@ -1456,9 +1456,9 @@ 1 - denali (on Generic Linux Device)2 - denali (on Generic Linux Device)2 - RemoteLinuxRunConfiguration:/home/denali/Projects/application/denali.pro + + denali (on Generic Linux Device (iMX8)) + RemoteLinuxRunConfiguration:/home/denali/projects/application/denali.pro 1 false Index: sources/storage/filehandler.cpp =================================================================== diff -u -r618891879f5cdc68e37ee68eea005afb76dd4e5b -rda52c90a17adea2160ac93042e0632a4cda46b1a --- sources/storage/filehandler.cpp (.../filehandler.cpp) (revision 618891879f5cdc68e37ee68eea005afb76dd4e5b) +++ sources/storage/filehandler.cpp (.../filehandler.cpp) (revision da52c90a17adea2160ac93042e0632a4cda46b1a) @@ -158,8 +158,8 @@ if ( ! dir.exists(vFolder) ) { if ( ! dir.mkpath(vFolder) ) { QString msg = "Can't create folder " + vFolder; + // here can't use LOG_XXXX because if the folder can't be created then the log can't be written. qDebug() << msg; - LOG_DEBUG(msg); return false; } } Index: sources/view/VEventSpy.cpp =================================================================== diff -u -r06d10ee1174f0947a01087554f3da3109b47aef6 -rda52c90a17adea2160ac93042e0632a4cda46b1a --- sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 06d10ee1174f0947a01087554f3da3109b47aef6) +++ sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision da52c90a17adea2160ac93042e0632a4cda46b1a) @@ -30,7 +30,11 @@ void VEventSpy::initConnections() { + // coco begin validated: this code has been manually tested. + // This should never happen with the current design and usage. + // put here for developer safety if (Gui::_viewer) { + // coco end QObject::connect(Gui::_viewer , SIGNAL( eventSpy(QEvent*)), this , SLOT(onEventSpy(QEvent*))); } @@ -40,6 +44,8 @@ QEvent::Type mType = vEvent->type(); switch (mType) { + // 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. // Mouse case QEvent::Type::MouseButtonDblClick : mouseEventSpy(vEvent, "mD"); break; case QEvent::Type::MouseButtonPress : mouseEventSpy(vEvent, "mP"); break; @@ -52,7 +58,7 @@ case QEvent::Type::TouchUpdate : touchEventSpy(vEvent, "tU"); break; case QEvent::Type::TouchCancel : touchEventSpy(vEvent, "tC"); break; case QEvent::Type::TouchEnd : touchEventSpy(vEvent, "tE"); break; - + // coco end default : break; @@ -65,6 +71,8 @@ * \param vEvent * \param typeName */ +// 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) { QMouseEvent *mouseEvent = static_cast(vEvent); @@ -93,19 +101,26 @@ case Qt::KeypadModifier : mdf = "#"; break; default : break; } + LOG_DEBUG( btn + typeName + mdf + QString(",%1,%2") .arg(x, 4, 10, QChar('0')) .arg(y, 4, 10, QChar('0'))); } +// coco end +// 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::doMouseReset() { mouseCount(0); } +// coco end /*! * \brief VEventSpy::touchEventSpy * \param vEvent * \param typeName */ +// 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::touchEventSpy(QEvent *vEvent, const QString &vTypeName) { QTouchEvent *touchEvent = static_cast(vEvent); @@ -131,5 +146,9 @@ } LOG_DEBUG( vTypeName + logString ); } +// coco end +// 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::doTouchReset() { touchCount(0); } +// coco end Index: sources/view/VEventSpy.h =================================================================== diff -u -r06d10ee1174f0947a01087554f3da3109b47aef6 -rda52c90a17adea2160ac93042e0632a4cda46b1a --- sources/view/VEventSpy.h (.../VEventSpy.h) (revision 06d10ee1174f0947a01087554f3da3109b47aef6) +++ sources/view/VEventSpy.h (.../VEventSpy.h) (revision da52c90a17adea2160ac93042e0632a4cda46b1a) @@ -33,12 +33,14 @@ // singleton SINGLETON(VEventSpy) + // 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. PROPERTY(quint64, touchCount , 0) PROPERTY(quint64, touchPoints, 0) PROPERTY(quint64, mouseCount, 0) PROPERTY(QPoint , mousePoint, QPoint()) - + // coco end private: void initConnections(); void mouseEventSpy(QEvent *vEvent, const QString &vTypeName);