Closed ybhvf closed 10 years ago
The use of the working directory for saving/loading a "settings.ini" isn't good practice.
Yeah, you are right, that even was somewhere on the TODO.
There are some problems with your code:
QSettings::IniFormat
anymore. The default format is QSettings::NativeFormat
. I would like to keep the IniFormat since it's platform-independent and, because of that, it is easier to troubleshoot (native formats have some platform-dependent limitations).Anyway, I will do appropriate changes sometime soon, so you don't have to correct anything.
Also, Qt is not QT (Quick Time) and there is no QTSettings :)
Heh - I should've spell-checked this commit. :)
Also, organization and application names are already set in main.cpp, so it's unnecessary to provide them to QSettings -- it will use them by default.
The use of the working directory for saving/loading a "settings.ini" isn't good practice. This commit changes the saving/loading behavior to use the QTSettings defaults for the settings file location.