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

Method setBox

src/ckb/rebindwidget.cpp:378–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void RebindWidget::setBox(QWidget* box){
379 // Un-select every item except for the current one.
380 // on_*_currentIndexChanged will take care of deselecting the checkbox.
381 // Key
382 if(box != ui->typingBox) ui->typingBox->setCurrentIndex(0);
383 if(box != ui->modBox) ui->modBox->setCurrentIndex(0);
384 if(box != ui->fnBox) ui->fnBox->setCurrentIndex(0);
385 if(box != ui->numBox) ui->numBox->setCurrentIndex(0);
386 if(box != ui->mediaBox) ui->mediaBox->setCurrentIndex(0);
387 // Mouse
388 if(box != ui->mbBox) ui->mbBox->setCurrentIndex(0);
389 if(box != ui->mb2Box) ui->mb2Box->setCurrentIndex(0);
390 if(box != ui->wheelBox) ui->wheelBox->setCurrentIndex(0);
391 if(box != ui->dpiBox) ui->dpiBox->setCurrentIndex(0);
392 // Anim
393 if(box != ui->animBox) ui->animBox->setCurrentIndex(0);
394 // Special
395 if(box != ui->modeBox) ui->modeBox->setCurrentIndex(0);
396 if(box != ui->lightBox) ui->lightBox->setCurrentIndex(0);
397 if(box != ui->lockBox) ui->lockBox->setCurrentIndex(0);
398 // Program
399 if(box != ui->programKpBox && box != ui->programKrBox){
400 ui->programKpButton->setChecked(false);
401 ui->programKrButton->setChecked(false);
402 }
403}
404
405void RebindWidget::on_typingBox_currentIndexChanged(int index){
406 if(index == 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected