MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / writeSettings

Method writeSettings

example/mainwindow.cpp:468–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void 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}

Callers

nothing calls this directly

Calls 10

addressAreaMethod · 0.80
asciiAreaMethod · 0.80
highlightingMethod · 0.80
overwriteModeMethod · 0.80
isReadOnlyMethod · 0.80
dynamicBytesPerLineMethod · 0.80
highlightingColorMethod · 0.80
addressWidthMethod · 0.80
bytesPerLineMethod · 0.80
hexCapsMethod · 0.80

Tested by

no test coverage detected