src/main.cpp

changeset 3
d0b278fd29d5
parent 2
1d544788a8b3
child 5
3c04e05ab24f
equal deleted inserted replaced
2:1d544788a8b3 3:d0b278fd29d5
1 #include <QApplication> 1 #include <QApplication>
2 #include <QSettings>
2 #include "types.h" 3 #include "types.h"
3 #include "config.h" 4 #include "config.h"
5
6 QSettings* cfg;
4 7
5 // ============================================================================= 8 // =============================================================================
6 // ----------------------------------------------------------------------------- 9 // -----------------------------------------------------------------------------
7 int main( int argc, char* argv[] ) { 10 int main( int argc, char* argv[] ) {
8 QApplication app( argc, argv ); 11 QApplication app( argc, argv );
12 app.setApplicationName( APPNAME );
13 app.setApplicationVersion( versionString() );
14
15 QSettings settings;
16 cfg = &settings;
9 17
10 for( int i = 1; i < argc; ++i ) { 18 for( int i = 1; i < argc; ++i ) {
11 str arg = argv[i]; 19 str arg = argv[i];
12 20
13 if( arg == "--config" ) { 21 if( arg == "--config" ) {

mercurial