Exemple #1
0
void ChatForm::stopCounter()
{
    if(timer)
    {
        addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getName(), secondsToDHMS(timeElapsed.elapsed()/1000)),
                             "white", QDateTime::currentDateTime());
        timer->stop();
        callDuration->hide();
        timer = nullptr;
        delete timer;
    }
}
Exemple #2
0
void ChatForm::stopCounter()
{
    if (callDurationTimer)
    {
        addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getDisplayedName(),secondsToDHMS(timeElapsed.elapsed()/1000)),
                             ChatMessage::INFO, QDateTime::currentDateTime());
        callDurationTimer->stop();
        callDuration->setText("");
        callDuration->hide();

        delete callDurationTimer;
        callDurationTimer = nullptr;
    }
}
Exemple #3
0
void ChatForm::updateTime()
{
    callDuration->setText(secondsToDHMS(timeElapsed.elapsed()/1000));
}