summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index c723faec..54f1bb5b 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -827,6 +827,22 @@ private:
};
+// manages global settings in the registry
+//
+class GlobalSettings
+{
+public:
+ // migrates the old settings from the Tannin key to the new one
+ static void updateRegistryKey();
+
+ static QString currentInstance();
+ static void setCurrentInstance(const QString& s);
+
+private:
+ static QSettings settings();
+};
+
+
// helper class that calls restoreGeometry() in the constructor and
// saveGeometry() in the destructor
//