MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / procKeyRecordStop

Method procKeyRecordStop

QKeyMapper/qkeyrecord.cpp:565–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565void QKeyRecord::procKeyRecordStop(bool clicked)
566{
567 if (QKeyMapper_Worker::s_KeyRecording) {
568#ifdef DEBUG_LOGOUT_ON
569 QString debugmessage = QString("[QKeyRecord::procKeyRecordStop] \"%1\" Key pressed on key record START state, Stop Key Record.").arg(KEY_RECORD_STOP_STR);
570 qDebug().nospace().noquote() << "\033[1;34m" << debugmessage << "\033[0m";
571#endif
572 if (clicked) {
573#ifdef DEBUG_LOGOUT_ON
574 qDebug().nospace().noquote() << "[QKeyRecord::procKeyRecordStop] Stop key record by click.";
575#endif
576 }
577 ui->mergeKeyActionsCheckBox->setEnabled(true);
578 ui->ignoreWaitTimeCheckBox->setEnabled(true);
579 QKeyMapper_Worker::keyRecordStop();
580 setKeyRecordLabel(KEYRECORD_STATE_STOP);
581 QKeyMapper_Worker::collectRecordKeysList(clicked);
582 emit updateKeyRecordLineEdit_Signal(true);
583 // close();
584 }
585}
586
587bool QKeyRecord::event(QEvent *event)
588{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected