| 856 | } |
| 857 | |
| 858 | void MainWindow::keymapChanged() { |
| 859 | if (ui->radioNaturalKeys->isChecked()) { |
| 860 | setKeymap(SETTING_KEYPAD_NATURAL); |
| 861 | } else if (ui->radioCEmuKeys->isChecked()) { |
| 862 | setKeymap(SETTING_KEYPAD_CEMU); |
| 863 | } else if (ui->radioTilEmKeys->isChecked()) { |
| 864 | setKeymap(SETTING_KEYPAD_TILEM); |
| 865 | } else if (ui->radioWabbitemuKeys->isChecked()) { |
| 866 | setKeymap(SETTING_KEYPAD_WABBITEMU); |
| 867 | } else if (ui->radiojsTIfiedKeys->isChecked()) { |
| 868 | setKeymap(SETTING_KEYPAD_JSTIFIED); |
| 869 | } else if (ui->radioSmartPadKeys->isChecked()) { |
| 870 | QMessageBox::warning(this, MSG_WARNING, tr("Be aware that this may behave unexpectedly due to the combinations of keypresses sent by the calculator, which may trigger some global shortcuts on your system!")); |
| 871 | setKeymap(SETTING_KEYPAD_SMARTPAD); |
| 872 | } else if (ui->radioCustomKeys->isChecked()) { |
| 873 | setKeymap(SETTING_KEYPAD_CUSTOM); |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | void MainWindow::setKeymap(const QString &value) { |
| 878 | QtKeypadBridge::KeymapMode mode; |
nothing calls this directly
no outgoing calls
no test coverage detected