| 53 | } |
| 54 | |
| 55 | void OptionsDialog::load(QHexEdit *hexedit) |
| 56 | { |
| 57 | ui->cbAddressArea->setChecked(hexedit->addressArea()); |
| 58 | ui->cbAsciiArea->setChecked(hexedit->asciiArea()); |
| 59 | ui->cbHighlighting->setChecked(hexedit->highlighting()); |
| 60 | ui->cbOverwriteMode->setChecked(hexedit->overwriteMode()); |
| 61 | ui->cbReadOnly->setChecked(hexedit->isReadOnly()); |
| 62 | ui->cbDynamicBytesPerLine->setChecked(hexedit->dynamicBytesPerLine()); |
| 63 | |
| 64 | setColor(ui->lbHighlightingColor, hexedit->highlightingColor()); |
| 65 | ui->leWidgetFont->setFont(hexedit->font()); |
| 66 | ui->sbAddressAreaWidth->setValue(hexedit->addressWidth()); |
| 67 | ui->sbBytesPerLine->setValue(hexedit->bytesPerLine()); |
| 68 | } |
| 69 | |
| 70 | void OptionsDialog::save(QHexEdit *hexedit) |
| 71 | { |
no test coverage detected