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

Method keyMappingTableItemCheckStateChanged

QKeyMapper/qitemsetupdialog.cpp:3471–3524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3469}
3470
3471void QItemSetupDialog::keyMappingTableItemCheckStateChanged(int row, int col, bool checked)
3472{
3473 Q_UNUSED(checked);
3474 if (row < 0 || row >= QKeyMapper::KeyMappingDataList->size()) {
3475 return;
3476 }
3477
3478 if (row != m_ItemRow) {
3479 return;
3480 }
3481
3482 if (col == BURST_MODE_COLUMN) {
3483 bool burst = ui->burstCheckBox->isChecked();
3484 if (burst != QKeyMapper::KeyMappingDataList->at(m_ItemRow).Burst) {
3485 ui->burstCheckBox->setChecked(QKeyMapper::KeyMappingDataList->at(m_ItemRow).Burst);
3486
3487#ifdef DEBUG_LOGOUT_ON
3488 qDebug().nospace().noquote() << "[" << __func__ << "] Row[" << m_ItemRow << "]["<< (*QKeyMapper::KeyMappingDataList)[m_ItemRow].Original_Key << "] Sync Burst check state -> " << QKeyMapper::KeyMappingDataList->at(m_ItemRow).Burst;
3489#endif
3490 }
3491 }
3492 else if (col == LOCK_COLUMN) {
3493 bool lock = ui->lockCheckBox->isChecked();
3494 if (lock != QKeyMapper::KeyMappingDataList->at(m_ItemRow).Lock) {
3495 ui->lockCheckBox->setChecked(QKeyMapper::KeyMappingDataList->at(m_ItemRow).Lock);
3496
3497#ifdef DEBUG_LOGOUT_ON
3498 qDebug().nospace().noquote() << "[" << __func__ << "] Row[" << m_ItemRow << "]["<< (*QKeyMapper::KeyMappingDataList)[m_ItemRow].Original_Key << "] Sync Lock checkstate -> " << QKeyMapper::KeyMappingDataList->at(m_ItemRow).Lock;
3499#endif
3500 }
3501 }
3502 else if (col == DISABLED_COLUMN) {
3503 bool disabled = ui->disabledCheckBox->isChecked();
3504 if (disabled != QKeyMapper::KeyMappingDataList->at(m_ItemRow).Disabled) {
3505 ui->disabledCheckBox->setChecked(QKeyMapper::KeyMappingDataList->at(m_ItemRow).Disabled);
3506
3507#ifdef DEBUG_LOGOUT_ON
3508 qDebug().nospace().noquote() << "[" << __func__ << "] Row[" << m_ItemRow << "]["<< (*QKeyMapper::KeyMappingDataList)[m_ItemRow].Original_Key << "] Sync Disabled checkstate -> " << QKeyMapper::KeyMappingDataList->at(m_ItemRow).Disabled;
3509#endif
3510 }
3511 }
3512 else if (col == FLOATING_COLUMN) {
3513 if (m_FloatingButtonSetupDialog != Q_NULLPTR
3514 && m_FloatingButtonSetupDialog->getItemRow() == m_ItemRow) {
3515 m_FloatingButtonSetupDialog->refreshFromCurrentItem();
3516
3517#ifdef DEBUG_LOGOUT_ON
3518 qDebug().nospace().noquote() << "[" << __func__ << "] Row[" << m_ItemRow << "]["<< (*QKeyMapper::KeyMappingDataList)[m_ItemRow].Original_Key << "] Sync FloatingButton checkstate -> " << QKeyMapper::KeyMappingDataList->at(m_ItemRow).FloatingButton_Enable;
3519#endif
3520 }
3521 }
3522
3523 updateMappingCodeDisplay();
3524}
3525
3526void QItemSetupDialog::copyMappingCodeToClipboard()
3527{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
getItemRowMethod · 0.45

Tested by

no test coverage detected