diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-28 16:30:52 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-28 16:30:52 +0200 |
| commit | 6edd9e7a12a3827fb6aac62a88be01085e41e176 (patch) | |
| tree | 4513475c7efaea92a154ff20e970ed3d4b475b7c /src/protocolsetup.cpp | |
| parent | a53e490d2e96d22a24293019921af26e00f2bf7a (diff) | |
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.
Diffstat (limited to 'src/protocolsetup.cpp')
| -rw-r--r-- | src/protocolsetup.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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 |
