| 16966 | } |
| 16967 | |
| 16968 | void QKeyMapper_Worker::stopBurstKeyTimerForce(const QString &burstKey, int mappingIndex) |
| 16969 | { |
| 16970 | QMutexLocker locker(&s_BurstKeyTimerMutex); |
| 16971 | Q_UNUSED(mappingIndex); |
| 16972 | |
| 16973 | #ifdef DEBUG_LOGOUT_ON |
| 16974 | qDebug().nospace().noquote() << "[stopBurstKeyTimerForce] Key [" << burstKey << "], MappingIndex =" << mappingIndex; |
| 16975 | #endif |
| 16976 | |
| 16977 | if (s_BurstKeyPressTimerMap.contains(burstKey)) { |
| 16978 | QTimer* timer = s_BurstKeyPressTimerMap.value(burstKey); |
| 16979 | timer->stop(); |
| 16980 | delete timer; |
| 16981 | s_BurstKeyPressTimerMap.remove(burstKey); |
| 16982 | #ifdef DEBUG_LOGOUT_ON |
| 16983 | qDebug().nospace().noquote() << "[stopBurstKeyTimerForce] s_BurstKeyPressTimerMap contains [" << burstKey << "], BurstKeyPressTimer stopped & removed."; |
| 16984 | #endif |
| 16985 | } |
| 16986 | |
| 16987 | if (s_BurstKeyTimerMap.contains(burstKey)) { |
| 16988 | QTimer* timer = s_BurstKeyTimerMap.value(burstKey); |
| 16989 | timer->stop(); |
| 16990 | delete timer; |
| 16991 | s_BurstKeyTimerMap.remove(burstKey); |
| 16992 | #ifdef DEBUG_LOGOUT_ON |
| 16993 | qDebug().nospace().noquote() << "[stopBurstKeyTimerForce] Key [" << burstKey << "], BurstKeyTimer stopped & removed."; |
| 16994 | #endif |
| 16995 | } |
| 16996 | |
| 16997 | sendBurstKeyUpForce(mappingIndex); |
| 16998 | } |
| 16999 | |
| 17000 | void QKeyMapper_Worker::resendRealKeyCodeOnStop(int rowindex, bool restart, QList<MAP_KEYDATA> *keyMappingDataListForRow, QList<MAP_KEYDATA> *keyMappingDataListToCheck) |
| 17001 | { |