~IconSelectButton() { iconStop(); if ( ic ) { delete ic; ic = 0; } }
void setIcon(const PsiIcon *i) { iconStop(); if ( ic ) { delete ic; ic = 0; } if ( i ) ic = new PsiIcon(*((PsiIcon *)i)); else ic = 0; }
void PanelTimeLineWidget::onPlayClicked(bool) { if (! _isAnimated) { /* start the animation */ QIcon iconStop(":/ex_stop.png"); _pBtnPlay->setWindowIcon(iconStop); _isAnimated = true; } else { /* stop the animation */ QIcon iconPlay(":/ex_play.png"); _pBtnPlay->setWindowIcon(iconPlay); _isAnimated = false; } }
void aboutToHide() { iconStop(); }