示例#1
0
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);
}
示例#2
0
void Proxy::Hide()
{
    qDebug()<<"Proxy::Hide"<<RThread().Id().Id();
/*
    RThread t;
    TThreadId id(App->thrID);
    qDebug()<<"err:"<<t.Open(id,EOwnerProcess);
    qDebug()<<"resume in proxy:"<<t.Id().Id();
    t.Resume();
    t.Close();
*/
    emit sigHide();
//QMetaObject::invokeMethod(App, "Hide", Qt::QueuedConnection);
}