예제 #1
0
파일: bird.cpp 프로젝트: GLDsuh-a/qt-1
void bird::setChangeAnimation()
{
    changeAnimation = true;
    can_up = true;

    emit adjustTimer();
    disconnect(animation, SIGNAL(finished()), this, SLOT(setChangeAnimation()));
}
예제 #2
0
///lets us know we should block output
void IRCQueue::serverOnline(bool on)
{
    if (m_blocked!=on)
        return;
    m_blocked=!on;
    if (m_blocked && m_timer->isActive())
        reset();
    else if (!m_blocked && !m_timer->isActive() && nextSize())
    {
        adjustTimer();
    }
}
예제 #3
0
//called when the timer fires.
void  IRCQueue::sendNow()
{
    if (doSend())
        adjustTimer();
    //else //its a single-shot timer so if we don't adjust it, it won't run :)
}
예제 #4
0
void IRCQueue::enqueue(const QString& line)
{
    m_pending.append(IRCMessage(line));
    if (!m_timer->isActive())
        adjustTimer();
}