QTfrontend/hwform.cpp
changeset 4592 b1fe47b11b99
parent 4576 d85062310790
child 4594 5645462cc78f
equal deleted inserted replaced
4590:d9fed5a816e9 4592:b1fe47b11b99
    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();