27 int main(int argc, char *argv[]) |
27 int main(int argc, char *argv[]) |
28 { |
28 { |
29 QApplication app(argc, argv); |
29 QApplication app(argc, argv); |
30 QString locale = QLocale::system().name(); |
30 QString locale = QLocale::system().name(); |
31 |
31 |
32 app.setApplicationName( |
32 app.setApplicationName("bmsapp"); |
33 #ifdef QT_DEBUG |
|
34 "bmsapp-debug" |
|
35 #else |
|
36 "bmsapp" |
|
37 #endif |
|
38 ); |
|
39 app.setApplicationVersion(VERSIONSTRING); |
33 app.setApplicationVersion(VERSIONSTRING); |
40 app.setOrganizationName("mbse"); |
34 app.setOrganizationName("mbse"); |
41 |
35 |
42 /* Stylesheet setup */ |
36 /* Stylesheet setup */ |
43 QFile f(":/qdarkstyle/theme/style.qss"); |
37 QFile f(":/qdarkstyle/theme/style.qss"); |
44 //QFile f(":darkorange.qss"); |
|
45 //QFile f(":dummy"); |
38 //QFile f(":dummy"); |
46 if (!f.exists()) { |
39 if (!f.exists()) { |
47 printf("Unable to set stylesheet, file not found\n"); |
40 printf("Unable to set stylesheet, file not found\n"); |
48 } else { |
41 } else { |
49 f.open(QFile::ReadOnly | QFile::Text); |
42 f.open(QFile::ReadOnly | QFile::Text); |