void JoyButtonWidget::unflash() { isflashing = false; this->style()->unpolish(this); this->style()->polish(this); emit flashed(isflashing); }
void FlashButton::flash() { emit( flashed( !flashing ) ); if (flashing) { setPalette( normalPalette ); flashing = false; } else { setPalette( flashPalette ); flashing = true; } }