aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-02 19:59:40 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-02 19:59:40 +0900
commitc05ade838f0fce81f2bbe80a3295618a8a26ff52 (patch)
tree763340439a0f4034e9c829d76cb1ffe9766b83c5 /lib/settings.h
parent1a1ea8fc87e827fa44c80ff30277e3bee62f4ebb (diff)
downloadlibquotient-c05ade838f0fce81f2bbe80a3295618a8a26ff52.tar.gz
libquotient-c05ade838f0fce81f2bbe80a3295618a8a26ff52.zip
Apply the new brace wrapping to source files
Diffstat (limited to 'lib/settings.h')
-rw-r--r--lib/settings.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/settings.h b/lib/settings.h
index e1ca0866..6747631e 100644
--- a/lib/settings.h
+++ b/lib/settings.h
@@ -24,10 +24,8 @@
class QVariant;
-namespace QMatrixClient
-{
-class Settings : public QSettings
-{
+namespace QMatrixClient {
+class Settings : public QSettings {
Q_OBJECT
public:
/**
@@ -42,9 +40,7 @@ public:
#if defined(_MSC_VER) && _MSC_VER < 1900
// VS 2013 (and probably older) aren't friends with 'using' statements
// that involve private constructors
- explicit Settings(QObject* parent = 0)
- : QSettings(parent)
- {}
+ explicit Settings(QObject* parent = 0) : QSettings(parent) {}
#else
using QSettings::QSettings;
#endif
@@ -71,8 +67,7 @@ protected:
QSettings legacySettings { legacyOrganizationName, legacyApplicationName };
};
-class SettingsGroup : public Settings
-{
+class SettingsGroup : public Settings {
public:
template <typename... ArgTs>
explicit SettingsGroup(QString path, ArgTs&&... qsettingsArgs)
@@ -121,8 +116,7 @@ private:
setValue(QStringLiteral(qsettingname), std::move(newValue)); \
}
-class AccountSettings : public SettingsGroup
-{
+class AccountSettings : public SettingsGroup {
Q_OBJECT
Q_PROPERTY(QString userId READ userId CONSTANT)
QMC_DECLARE_SETTING(QString, deviceId, setDeviceId)