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:
Dirk Hohndel 2013-05-05 21:06:45 -07:00
parent 8e35868b9b
commit e960a5b558
2 changed files with 121 additions and 4 deletions

View file

@ -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)