mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +02:00
24e67da33c
Save settings as... now asks which parts to save: toolbars, keyboard shortcuts and mouse gestures; defaults for new projects (folio, title block, wires, numbering); everything else. All three ticked writes the same complete file as before (format 1, collection folders included). A file with only some parts is format 2 and lists its parts. Loading it replaces those parts and keeps every other setting. The folders of the collections are never in such a file: they rarely exist on another computer. A QElectroTech that only knows format 1 refuses it rather than loading it as complete and losing every other setting. A file holding only the defaults for new projects loads without closing QElectroTech, since QETProject reads them again for every new project. Which part a key belongs to is ConfigProfile::partOf(); a key it does not list falls in "everything else", so a new setting can never be left out of every part. The test checks that what BorderProperties writes for the folio defaults lands in the new-project part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>