コード例 #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
ファイル: ircqueue.cpp プロジェクト: KDE/konversation
///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
ファイル: ircqueue.cpp プロジェクト: KDE/konversation
//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
ファイル: ircqueue.cpp プロジェクト: KDE/konversation
void IRCQueue::enqueue(const QString& line)
{
    m_pending.append(IRCMessage(line));
    if (!m_timer->isActive())
        adjustTimer();
}