Example #1
0
std::size_t Widget::getHeight()
{
    QPropertyAnimation* anim = qobject_cast<QPropertyAnimation*>(m_animation.animationAt(0));
    if(anim->direction() == QAbstractAnimation::Forward
            && !m_messageQueue.empty()) {
        return m_messageQueue.front().data["size"]->toInt();
    } else {
        return height();
    }
}