comparison main/main.cpp @ 6:d4487202d0e8

* Replace all uses of ConfigFile with QSettings
author Chris Cannam
date Thu, 03 Aug 2006 16:04:00 +0000
parents 0a687ed1b50f
children c3ef80114040
comparison
equal deleted inserted replaced
5:0a687ed1b50f 6:d4487202d0e8
18 #include "system/System.h" 18 #include "system/System.h"
19 #include "system/Init.h" 19 #include "system/Init.h"
20 #include "base/TempDirectory.h" 20 #include "base/TempDirectory.h"
21 #include "base/PropertyContainer.h" 21 #include "base/PropertyContainer.h"
22 #include "base/Preferences.h" 22 #include "base/Preferences.h"
23 #include "base/ConfigFile.h"
24 23
25 #include <QMetaType> 24 #include <QMetaType>
26 #include <QApplication> 25 #include <QApplication>
27 #include <QDesktopWidget> 26 #include <QDesktopWidget>
28 #include <QMessageBox> 27 #include <QMessageBox>
62 signal(SIGQUIT, signalHandler); 61 signal(SIGQUIT, signalHandler);
63 #endif 62 #endif
64 63
65 svSystemSpecificInitialisation(); 64 svSystemSpecificInitialisation();
66 65
67 QApplication::setOrganizationName("Sonic Visualiser"); 66 QApplication::setOrganizationName("sonic-visualiser");
68 QApplication::setOrganizationDomain("sonicvisualiser.org"); 67 QApplication::setOrganizationDomain("sonicvisualiser.org");
69 QApplication::setApplicationName("Sonic Visualiser"); 68 QApplication::setApplicationName("sonic-visualiser");
70 69
71 QString language = QLocale::system().name(); 70 QString language = QLocale::system().name();
72 71
73 QTranslator qtTranslator; 72 QTranslator qtTranslator;
74 QString qtTrName = QString("qt_%1").arg(language); 73 QString qtTrName = QString("qt_%1").arg(language);
125 int rv = application.exec(); 124 int rv = application.exec();
126 std::cerr << "application.exec() returned " << rv << std::endl; 125 std::cerr << "application.exec() returned " << rv << std::endl;
127 126
128 cleanupMutex.lock(); 127 cleanupMutex.lock();
129 TempDirectory::getInstance()->cleanup(); 128 TempDirectory::getInstance()->cleanup();
130 Preferences::getInstance()->getConfigFile()->commit();
131 129
132 return rv; 130 return rv;
133 } 131 }