mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add most settings to the QSettings code
This is missing the char * based settings (as I have no idea how to do those) plus the map provider. Everything else should work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8e35868b9b
commit
e960a5b558
2 changed files with 121 additions and 4 deletions
|
@ -75,14 +75,16 @@ void init_ui(int *argcp, char ***argvp)
|
|||
QTextCodec::setCodecForCStrings(QTextCodec::codecForMib(106));
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
subsurface_open_conf();
|
||||
|
||||
load_preferences();
|
||||
|
||||
/* these still need to be handled in QSettings */
|
||||
default_dive_computer_vendor = subsurface_get_conf("dive_computer_vendor");
|
||||
default_dive_computer_product = subsurface_get_conf("dive_computer_product");
|
||||
default_dive_computer_device = subsurface_get_conf("dive_computer_device");
|
||||
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -94,7 +96,9 @@ void run_ui(void)
|
|||
void exit_ui(void)
|
||||
{
|
||||
delete application;
|
||||
#if 0
|
||||
subsurface_close_conf();
|
||||
#endif
|
||||
if (existing_filename)
|
||||
free((void *)existing_filename);
|
||||
if (default_dive_computer_device)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue