| 122 | } |
| 123 | |
| 124 | void SettingsWidget::updateModifiers(){ |
| 125 | QHash<QString, QString> newMods; |
| 126 | newMods["caps"] = modKeys[ui->capsBox->currentIndex()]; |
| 127 | newMods["lshift"] = modKeys[ui->shiftBox->currentIndex()]; |
| 128 | newMods["rshift"] = right(modKeys[ui->shiftBox->currentIndex()]); |
| 129 | newMods["lctrl"] = modKeys[ui->ctrlBox->currentIndex()]; |
| 130 | newMods["rctrl"] = right(modKeys[ui->ctrlBox->currentIndex()]); |
| 131 | newMods["lalt"] = modKeys[ui->altBox->currentIndex()]; |
| 132 | newMods["ralt"] = right(modKeys[ui->altBox->currentIndex()]); |
| 133 | newMods["lwin"] = modKeys[ui->winBox->currentIndex()]; |
| 134 | newMods["rwin"] = right(modKeys[ui->winBox->currentIndex()]); |
| 135 | KbBind::setGlobalRemap(newMods); |
| 136 | KbBind::saveGlobalRemap(); |
| 137 | } |
| 138 | |
| 139 | void SettingsWidget::on_pushButton_clicked(){ |
| 140 | qApp->quit(); |