Start-up parameters locations
Dirk Hohndel
dirk at hohndel.org
Tue Nov 3 07:52:43 PST 2015
On Tue, Nov 03, 2015 at 05:49:35PM +0200, Lubomir I. Ivanov wrote:
> to clarify - in which cpp file?
Ah.
> we don't need the default directory stored in the QSettings on Android
> for now, so i was thinking of just adding it in the desktop
> MainWindow() constructor.
We only need this on Windows... so why not do it in windows.c?
> QSettings s;
> s.beginGroup("GeneralSettings");
> s.setValue("default_directory", system_default_directory());
> s.end();
Oh, of course, it needs to be done in a Qt/C++ file. So let's do it in
qthelper.cpp but only call that function from windows.c
And let's not create a new group, let's reuse "General".
/D
More information about the subsurface
mailing list