mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
0825f644e0
commit
9b8a6fa855
22 changed files with 349 additions and 348 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue