equal
deleted
inserted
replaced
94 srand(now.toTime_t()); |
94 srand(now.toTime_t()); |
95 rand(); |
95 rand(); |
96 |
96 |
97 Q_INIT_RESOURCE(hedgewars); |
97 Q_INIT_RESOURCE(hedgewars); |
98 |
98 |
99 qApp->setStyleSheet |
99 QString styleSheetFromHell = |
100 (QString( |
100 QString( |
101 "HWForm,QDialog{" |
101 "HWForm,QDialog{" |
102 "background-image: url(\":/res/Background.png\");" |
102 "background-image: url(\":/res/Background.png\");" |
103 "background-position: bottom center;" |
103 "background-position: bottom center;" |
104 "background-repeat: repeat-x;" |
104 "background-repeat: repeat-x;" |
105 "background-color: #141250;" |
105 "background-color: #141250;" |
313 "margin: -2px 0px;" |
313 "margin: -2px 0px;" |
314 "border-radius: 3px;" |
314 "border-radius: 3px;" |
315 "background-color: #ffcc00;" |
315 "background-color: #ffcc00;" |
316 "width: 8px;" |
316 "width: 8px;" |
317 "}" |
317 "}" |
318 ) |
318 ); |
319 ); |
|
320 |
319 |
321 bindir->cd("bin"); // workaround over NSIS installer |
320 bindir->cd("bin"); // workaround over NSIS installer |
322 |
321 |
323 if(cConfigDir->length() == 0) |
322 if(cConfigDir->length() == 0) |
324 cfgdir->setPath(cfgdir->homePath()); |
323 cfgdir->setPath(cfgdir->homePath()); |
482 #ifdef __APPLE__ |
481 #ifdef __APPLE__ |
483 // this creates the autoreleasepool that prevents leaking |
482 // this creates the autoreleasepool that prevents leaking |
484 CocoaInitializer initializer; |
483 CocoaInitializer initializer; |
485 #endif |
484 #endif |
486 |
485 |
487 app.form = new HWForm(); |
486 app.form = new HWForm(NULL,styleSheetFromHell); |
488 |
487 |
489 app.form->show(); |
488 app.form->show(); |
490 return app.exec(); |
489 return app.exec(); |
491 } |
490 } |