core: make qPref.* use static

Prepare qPref.* to run load/sync
Make variables and methods static to give easy access
Make getter inline to give faster access

Signed-off-by: Jan Iversen <jani@apache.org>:wq
This commit is contained in:
jan Iversen 2018-08-14 09:56:20 +02:00 committed by Dirk Hohndel
parent 253d868328
commit 0825f644e0
3 changed files with 13 additions and 18 deletions

View file

@ -51,7 +51,7 @@ void qPrefGeneral::set_default_file_behavior(enum def_file_behavior value)
prefs.default_file_behavior = value;
}
disk_default_file_behavior(true);
emit default_file_behavior_changed(value);
emit qPrefGeneral::instance()->default_file_behavior_changed(value);
}
}
void qPrefGeneral::disk_default_file_behavior(bool doSync)