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/qPrefUpdateManager.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/qPrefUpdateManager.cpp')
-rw-r--r-- | core/settings/qPrefUpdateManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/qPrefUpdateManager.cpp b/core/settings/qPrefUpdateManager.cpp index 2c8b8d70e..e6eac1e6a 100644 --- a/core/settings/qPrefUpdateManager.cpp +++ b/core/settings/qPrefUpdateManager.cpp @@ -30,7 +30,7 @@ void qPrefUpdateManager::set_dont_check_exists(bool value) { if (value != prefs.update_manager.dont_check_exists) { prefs.update_manager.dont_check_exists = value; - emit dont_check_exists_changed(value); + emit instance()->dont_check_exists_changed(value); } // DO NOT STORE ON DISK } @@ -45,7 +45,7 @@ void qPrefUpdateManager::set_next_check(const QDate& value) if (valueString != prefs.update_manager.next_check) { qPrefPrivate::copy_txt(&prefs.update_manager.next_check, valueString); disk_next_check(true); - emit next_check_changed(value); + emit instance()->next_check_changed(value); } } DISK_LOADSYNC_TXT_EXT(UpdateManager, "/NextCheck", next_check, update_manager.); |