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
|
@ -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.);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue