MCPcopy Create free account
hub / github.com/ElementsProject/elements / CopySettings

Function CopySettings

src/qt/optionsmodel.cpp:205–210  ·  view source on GitHub ↗

Helper function to copy contents from one QSettings to another. * By using allKeys this also covers nested settings in a hierarchy. */

Source from the content-addressed store, hash-verified

203 * By using allKeys this also covers nested settings in a hierarchy.
204 */
205static 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. */
213static void BackupSettings(const fs::path& filename, const QSettings& src)

Callers 1

BackupSettingsFunction · 0.85

Calls 2

setValueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected