Helper function to copy contents from one QSettings to another. * By using allKeys this also covers nested settings in a hierarchy. */
| 203 | * By using allKeys this also covers nested settings in a hierarchy. |
| 204 | */ |
| 205 | static void CopySettings(QSettings& dst, const QSettings& src) |
| 206 | { |
| 207 | for (const QString& key : src.allKeys()) { |
| 208 | dst.setValue(key, src.value(key)); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | /** Back up a QSettings to an ini-formatted file. */ |
| 213 | static void BackupSettings(const fs::path& filename, const QSettings& src) |
no test coverage detected