void UIPopupPane::polishEvent(QShowEvent *) { /* Focus if marked as 'focused': */ if (m_fFocused) setFocus(); /* Emit signal to start *show* animation: */ emit sigToShow(); }
void UIPopupPane::prepareAnimation() { /* Install 'show' animation for 'minimumSizeHint' property: */ connect(this, SIGNAL(sigToShow()), this, SIGNAL(sigShow()), Qt::QueuedConnection); m_pShowAnimation = UIAnimation::installPropertyAnimation(this, "minimumSizeHint", "hiddenSizeHint", "shownSizeHint", SIGNAL(sigShow()), SIGNAL(sigHide())); connect(m_pShowAnimation, SIGNAL(sigStateEnteredFinal()), this, SLOT(sltMarkAsShown())); /* Install 'hover' animation for 'opacity' property: */ UIAnimation::installPropertyAnimation(this, "opacity", "defaultOpacity", "hoveredOpacity", SIGNAL(sigHoverEnter()), SIGNAL(sigHoverLeave()), m_fHovered); }
void UIPopupPane::polishEvent(QShowEvent*) { /* Emit signal to start *show* animation: */ emit sigToShow(); }