void english::key1() { numToString(); // Number to string. if(isKeyPressed1) { ui->eng1BG->setStyleSheet(typewriterCssAbc + keyFinishedBG); ui->eng1->setStyleSheet(keypressColorLowercase + fontFamilyLowercase); } else { ui->eng1BG->setStyleSheet(typewriterCssAbc + keypressBackgroundColor); ui->eng1->setStyleSheet(keypressColorLowercase + fontFamilyLowercase); } ui->eng1_2->setStyleSheet(keypressColorLowercase + fontFamilyLowercase); if(ui->rbLive->isChecked()) ui->u1->setStyleSheet(keyPressColorEnglish + englishFontFamily + englishFontSize); else ui->u1->setStyleSheet(englishFontFamily + englishFontSize); ui->bg1->setStyleSheet(typewriterCss + keypressBackgroundColor + borderCenter); //............................................... if(imageFlagKeypress == "1") { ui->img1->show(); ui->img1->setMovie(&movieKeypress); } //............................................... if(colorHighlightFlag) keyColorHigh1(); if(ui->keyFlash->isChecked()) QTimer::singleShot(timeX, this, SLOT(changeColorBack1())); // Soft difficulty does not require an ABC Keypress; it requires the spacebar. if(ui->leMatch->text() == sl.at(0) && gameOnFlag == true && ui->strict->isChecked() ) QSound::play(silenceFileName); // sl.at(0) = array of strings, first position. else if(isKeyPressed1 && (gameOnFlag == true || ui->effectNone->isChecked() == false ) ) QSound::play(silenceFileName); else // general keypressing - playing around QSound::play(audioFileName); }