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

Method on_fixedVKeyCodeSpinBox_valueChanged

QKeyMapper/qitemsetupdialog.cpp:4110–4131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4108}
4109
4110void 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
4133void QItemSetupDialog::on_keyRecordEditModeButton_clicked()
4134{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
valueMethod · 0.80
notifySaveSettingDirtyFunction · 0.70

Tested by

no test coverage detected