From 6edd9e7a12a3827fb6aac62a88be01085e41e176 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sun, 28 Jun 2020 16:30:52 +0200 Subject: Huge refacoring of the settings stuff. Provides automated migration between old and new configuration file stuff. Themes are now just files in a folder instead of encoded data in the config file. --- src/protocolsetup.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/protocolsetup.cpp') diff --git a/src/protocolsetup.cpp b/src/protocolsetup.cpp index 33b454e..e5a87fb 100644 --- a/src/protocolsetup.cpp +++ b/src/protocolsetup.cpp @@ -11,20 +11,16 @@ ProtocolSetup::ProtocolSetup() void ProtocolSetup::save(QSettings &settings) const { - settings.beginGroup("Protocols"); #define MAC(X) settings.setValue(#X, this->X); PROTOCOLS(MAC) #undef MAC - settings.endGroup(); } void ProtocolSetup::load(QSettings &settings) { - settings.beginGroup("Protocols"); #define MAC(X) if(settings.contains(#X)) this->X = settings.value(#X).toBool(); PROTOCOLS(MAC) #undef MAC - settings.endGroup(); } ProtocolSetup::ProtocolSupport ProtocolSetup::isSchemeSupported(QString const & _scheme) const -- cgit v1.2.3