Beispiel #1
0
void JoyButtonWidget::unflash()
{
    isflashing = false;

    this->style()->unpolish(this);
    this->style()->polish(this);

    emit flashed(isflashing);
}
Beispiel #2
0
void FlashButton::flash()
{
    emit( flashed( !flashing ) );
    if (flashing)
    {
        setPalette( normalPalette );
        flashing = false;
    }
    else
    {
        setPalette( flashPalette );
        flashing = true;
    }
}