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

Method on_dpiBox_currentIndexChanged

src/ckb/rebindwidget.cpp:477–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void RebindWidget::on_dpiBox_currentIndexChanged(int index){
478 if(index != DPI_CUST_IDX){
479 // Clear custom DPI
480 ui->dpiCustXBox->setEnabled(false);
481 ui->dpiCustYBox->setEnabled(false);
482 ui->dpiCustLabel->setEnabled(false);
483 } else {
484 ui->dpiCustXBox->setEnabled(true);
485 ui->dpiCustYBox->setEnabled(true);
486 ui->dpiCustLabel->setEnabled(true);
487 }
488 if(index == 0)
489 ui->dpiButton->setChecked(false);
490 else {
491 ui->dpiButton->setChecked(true);
492 setBox(ui->dpiBox);
493 }
494}
495
496void RebindWidget::on_modeBox_currentIndexChanged(int index){
497 if(index == 1 || index == 2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected