bool KBBTutorial::mayShootRay(const int incomingPosition) { if (m_step==LAST_STEP) return true; else if (incomingPosition==m_laserToUse) { nextStep(); return true; } else { // Highlight m_playerAction to show what the player has to do m_playerAction->setStyleSheet("color: black; background-color: #de0000"); QTimer::singleShot(HIGHLIGHT_TIME, this, SLOT(restoreStyle())); return false; } }
void KLFLibEntryEditor::on_btnRestoreStyle_clicked() { emit restoreStyle(pCurrentStyle); }