diff options
author | jan Iversen <jani@apache.org> | 2018-08-14 10:30:07 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-15 16:11:39 -0700 |
commit | 9b8a6fa8552647c1c1e7b78000e93a1bbc508365 (patch) | |
tree | 4196fe4371cab7e02c5168256e2d6ce380aadbce /core/settings/qPrefFacebook.cpp | |
parent | 0825f644e0b98190d68e0b63c4204fa8282e84b4 (diff) | |
download | subsurface-9b8a6fa8552647c1c1e7b78000e93a1bbc508365.tar.gz |
core: make methods in qPref* static
Make methods static to allow fast and esay access
use qPrefXYZ::foo() instead of qPrefXYZ::instance()->foo()
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefFacebook.cpp')
-rw-r--r-- | core/settings/qPrefFacebook.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/settings/qPrefFacebook.cpp b/core/settings/qPrefFacebook.cpp index b96008920..29e62d38f 100644 --- a/core/settings/qPrefFacebook.cpp +++ b/core/settings/qPrefFacebook.cpp @@ -22,7 +22,7 @@ void qPrefFacebook::set_access_token(const QString &value) { if (value != prefs.facebook.access_token) { qPrefPrivate::instance()->copy_txt(&prefs.facebook.access_token, value); - emit access_token_changed(value); + emit instance()->access_token_changed(value); } } @@ -30,7 +30,7 @@ void qPrefFacebook::set_album_id(const QString &value) { if (value != prefs.facebook.album_id) { qPrefPrivate::instance()->copy_txt(&prefs.facebook.album_id, value); - emit album_id_changed(value); + emit instance()->album_id_changed(value); } } @@ -38,6 +38,6 @@ void qPrefFacebook::set_user_id(const QString &value) { if (value != prefs.facebook.user_id) { qPrefPrivate::instance()->copy_txt(&prefs.facebook.user_id, value); - emit access_token_changed(value); + emit instance()->access_token_changed(value); } } |