| 453 | } |
| 454 | |
| 455 | void MainWindow::setFont(int fontSize) { |
| 456 | ui->textSize->setValue(fontSize); |
| 457 | m_config->setValue(SETTING_DEBUGGER_TEXT_SIZE, ui->textSize->value()); |
| 458 | |
| 459 | QFont monospace = QFontDatabase::systemFont(QFontDatabase::FixedFont); |
| 460 | monospace.setStyleHint(QFont::Monospace); |
| 461 | |
| 462 | monospace.setPointSize(fontSize); |
| 463 | ui->console->setFont(monospace); |
| 464 | m_disasm->setFont(monospace); |
| 465 | |
| 466 | ui->stackView->setFont(monospace); |
| 467 | |
| 468 | ui->afregView->setFont(monospace); |
| 469 | ui->hlregView->setFont(monospace); |
| 470 | ui->deregView->setFont(monospace); |
| 471 | ui->bcregView->setFont(monospace); |
| 472 | ui->ixregView->setFont(monospace); |
| 473 | ui->iyregView->setFont(monospace); |
| 474 | ui->af_regView->setFont(monospace); |
| 475 | ui->hl_regView->setFont(monospace); |
| 476 | ui->de_regView->setFont(monospace); |
| 477 | ui->bc_regView->setFont(monospace); |
| 478 | ui->splregView->setFont(monospace); |
| 479 | ui->spsregView->setFont(monospace); |
| 480 | ui->mbregView->setFont(monospace); |
| 481 | ui->iregView->setFont(monospace); |
| 482 | ui->rregView->setFont(monospace); |
| 483 | ui->imregView->setFont(monospace); |
| 484 | ui->freqView->setFont(monospace); |
| 485 | ui->pcregView->setFont(monospace); |
| 486 | ui->lcdbaseView->setFont(monospace); |
| 487 | ui->lcdcurrView->setFont(monospace); |
| 488 | ui->cycleView->setFont(monospace); |
| 489 | ui->flashAvgView->setFont(monospace); |
| 490 | ui->flashMissesView->setFont(monospace); |
| 491 | } |
| 492 | |
| 493 | void MainWindow::setKeypadColor(unsigned int color) { |
| 494 | ui->keypadWidget->setType(get_device_type(), color); |
no outgoing calls
no test coverage detected