MCPcopy Create free account
hub / github.com/ccMSC/ckb / updateModifiers

Method updateModifiers

src/ckb/settingswidget.cpp:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void 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
139void SettingsWidget::on_pushButton_clicked(){
140 qApp->quit();

Callers

nothing calls this directly

Calls 1

rightFunction · 0.85

Tested by

no test coverage detected