Fixed the hide / show columns using the settings.

This also changed a bit the behavior on how the QSettings are managed,
till now, we used the QSettings constructor passing the name of the
software and the 'company', but this is now default - so there's no
need to pass anything by the QSettings contructor.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-21 23:07:19 -03:00
parent 37ada91000
commit 3fdea49e70
3 changed files with 12 additions and 3 deletions

View file

@ -61,6 +61,9 @@ const char *existing_filename;
void init_qt_ui(int *argcp, char ***argvp)
{
application->installTranslator(new Translator(application));
QCoreApplication::setOrganizationName("hohndel");
QCoreApplication::setOrganizationDomain("hohndel.org");
QCoreApplication::setApplicationName("Subsurface");
MainWindow *window = new MainWindow();
window->show();
}