| 466 | } |
| 467 | |
| 468 | void MainWindow::writeSettings() |
| 469 | { |
| 470 | // Note: theme settings is not stored in hexedit, Optionsdialog handles this directly |
| 471 | |
| 472 | QSettings settings; |
| 473 | settings.setValue("pos", pos()); |
| 474 | settings.setValue("size", size()); |
| 475 | |
| 476 | settings.setValue("AddressArea", hexEdit->addressArea()); |
| 477 | settings.setValue("AsciiArea", hexEdit->asciiArea()); |
| 478 | settings.setValue("Highlighting", hexEdit->highlighting()); |
| 479 | settings.setValue("OverwriteMode", hexEdit->overwriteMode()); |
| 480 | settings.setValue("ReadOnly", hexEdit->isReadOnly()); |
| 481 | settings.setValue("DynamicBytesPerLine", hexEdit->dynamicBytesPerLine()); |
| 482 | |
| 483 | settings.setValue("HighlightingColor", hexEdit->highlightingColor()); |
| 484 | |
| 485 | settings.setValue("AddressAreaWidth", hexEdit->addressWidth()); |
| 486 | settings.setValue("BytesPerLine", hexEdit->bytesPerLine()); |
| 487 | settings.setValue("HexCaps", hexEdit->hexCaps()); |
| 488 | |
| 489 | settings.setValue("WidgetFont", hexEdit->font()); |
| 490 | } |
nothing calls this directly
no test coverage detected