equal
deleted
inserted
replaced
84 frontendEffects = gameSettings->value("frontend/effects", true).toBool(); |
84 frontendEffects = gameSettings->value("frontend/effects", true).toBool(); |
85 playerHash = QString(QCryptographicHash::hash(gameSettings->value("net/nick","").toString().toLatin1(), QCryptographicHash::Md5).toHex()); |
85 playerHash = QString(QCryptographicHash::hash(gameSettings->value("net/nick","").toString().toLatin1(), QCryptographicHash::Md5).toHex()); |
86 |
86 |
87 ui.setupUi(this); |
87 ui.setupUi(this); |
88 setMinimumSize(760, 580); |
88 setMinimumSize(760, 580); |
89 setFocusPolicy(Qt::StrongFocus); |
89 //setFocusPolicy(Qt::StrongFocus); |
90 CustomizePalettes(); |
90 CustomizePalettes(); |
91 |
91 |
92 ui.pageOptions->CBResolution->addItems(sdli.getResolutions()); |
92 ui.pageOptions->CBResolution->addItems(sdli.getResolutions()); |
93 |
93 |
94 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
94 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
306 else { |
306 else { |
307 setWindowState(windowState() & !Qt::WindowFullScreen); |
307 setWindowState(windowState() & !Qt::WindowFullScreen); |
308 } |
308 } |
309 } |
309 } |
310 |
310 |
|
311 /* |
311 void HWForm::keyReleaseEvent(QKeyEvent *event) |
312 void HWForm::keyReleaseEvent(QKeyEvent *event) |
312 { |
313 { |
313 if (event->key() == Qt::Key_Escape /*|| event->key() == Qt::Key_Backspace*/ ) |
314 if (event->key() == Qt::Key_Escape) |
314 this->GoBack(); |
315 this->GoBack(); |
315 } |
316 } |
|
317 */ |
316 |
318 |
317 void HWForm::CustomizePalettes() |
319 void HWForm::CustomizePalettes() |
318 { |
320 { |
319 QList<QScrollBar *> allSBars = findChildren<QScrollBar *>(); |
321 QList<QScrollBar *> allSBars = findChildren<QScrollBar *>(); |
320 QPalette pal = palette(); |
322 QPalette pal = palette(); |