src/main.cpp

changeset 3
d0b278fd29d5
parent 2
1d544788a8b3
child 5
3c04e05ab24f
--- a/src/main.cpp	Wed Jul 17 00:31:04 2013 +0300
+++ b/src/main.cpp	Wed Jul 17 01:53:57 2013 +0300
@@ -1,11 +1,19 @@
 #include <QApplication>
+#include <QSettings>
 #include "types.h"
 #include "config.h"
 
+QSettings* cfg;
+
 // =============================================================================
 // -----------------------------------------------------------------------------
 int main( int argc, char* argv[] ) {
 	QApplication app( argc, argv );
+	app.setApplicationName( APPNAME );
+	app.setApplicationVersion( versionString() );
+	
+	QSettings settings;
+	cfg = &settings;
 	
 	for( int i = 1; i < argc; ++i ) {
 		str arg = argv[i];

mercurial