36 #else |
33 #else |
37 "bmsapp" |
34 "bmsapp" |
38 #endif |
35 #endif |
39 ); |
36 ); |
40 app.setApplicationVersion(VERSIONSTRING); |
37 app.setApplicationVersion(VERSIONSTRING); |
|
38 // app.setStyle("oxygen"); |
41 app.setOrganizationName("mbse"); |
39 app.setOrganizationName("mbse"); |
|
40 |
|
41 QFile f(":/qdarkstyle/theme/style.qss"); |
|
42 |
|
43 if (!f.exists()) { |
|
44 printf("Unable to set stylesheet, file not found\n"); |
|
45 } else { |
|
46 f.open(QFile::ReadOnly | QFile::Text); |
|
47 QTextStream ts(&f); |
|
48 qApp->setStyleSheet(ts.readAll()); |
|
49 } |
42 |
50 |
43 /* Setup user ini format */ |
51 /* Setup user ini format */ |
44 QSettings::setDefaultFormat(QSettings::IniFormat); |
52 QSettings::setDefaultFormat(QSettings::IniFormat); |
45 |
53 |
46 /* Setup commandline parser */ |
54 /* Setup commandline parser */ |