| 376 | } |
| 377 | |
| 378 | void 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 | |
| 405 | void RebindWidget::on_typingBox_currentIndexChanged(int index){ |
| 406 | if(index == 0) |
nothing calls this directly
no outgoing calls
no test coverage detected