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" ) { |