| 4108 | } |
| 4109 | |
| 4110 | void QItemSetupDialog::on_fixedVKeyCodeSpinBox_valueChanged(int value) |
| 4111 | { |
| 4112 | Q_UNUSED(value); |
| 4113 | if (m_ItemRow < 0 || m_ItemRow >= QKeyMapper::KeyMappingDataList->size()) { |
| 4114 | return; |
| 4115 | } |
| 4116 | |
| 4117 | int fixedvkeycode = ui->fixedVKeyCodeSpinBox->value(); |
| 4118 | if (fixedvkeycode < FIXED_VIRTUAL_KEY_CODE_MIN || fixedvkeycode > FIXED_VIRTUAL_KEY_CODE_MAX) { |
| 4119 | fixedvkeycode = FIXED_VIRTUAL_KEY_CODE_NONE; |
| 4120 | ui->fixedVKeyCodeSpinBox->setValue(fixedvkeycode); |
| 4121 | return; |
| 4122 | } |
| 4123 | if (fixedvkeycode != QKeyMapper::KeyMappingDataList->at(m_ItemRow).FixedVKeyCode) { |
| 4124 | (*QKeyMapper::KeyMappingDataList)[m_ItemRow].FixedVKeyCode = fixedvkeycode; |
| 4125 | notifySaveSettingDirty(); |
| 4126 | #ifdef DEBUG_LOGOUT_ON |
| 4127 | QString fixedvkeycodeStr = QString("0x%1").arg(QString::number(fixedvkeycode, 16).toUpper(), 2, '0'); |
| 4128 | qDebug().nospace().noquote() << "[" << __func__ << "] Row[" << m_ItemRow << "]["<< (*QKeyMapper::KeyMappingDataList)[m_ItemRow].Original_Key << "] FixedVKeyCode -> " << fixedvkeycodeStr; |
| 4129 | #endif |
| 4130 | } |
| 4131 | } |
| 4132 | |
| 4133 | void QItemSetupDialog::on_keyRecordEditModeButton_clicked() |
| 4134 | { |
nothing calls this directly
no test coverage detected