Example #1
0
/*!
    Sets the time in which all QAbstractActionInput's in the input chord must triggered within to \a timeout.
    The time is in milliseconds
 */
void QInputChord::setTimeout(int timeout)
{
    Q_D(QInputChord);
    if (d->m_timeout != timeout) {
        d->m_timeout = timeout;
        emit timeoutChanged(timeout);
    }
}
Example #2
0
Config& Config::setTimeout(qreal value)
{
    if (mpData->timeout == value)
        return *this;
    mpData->timeout = value;
    emit timeoutChanged();
    return *this;
}
Example #3
0
void WebRequester::setTimeout(int ms)
{
    if (d->timer.interval() != ms)
    {
        d->timer.setInterval(ms);
        emit timeoutChanged(ms);
    }
}
Example #4
0
/*!
    Sets the \a newTimeout for this QModbusClient instance. The minimum timeout
    is 50 ms.

    The timeout is used by the client to determine how long it waits for
    a response from the server. If the response is not received within the
    required timeout, the \l TimeoutError is set.

    Already active/running timeouts are not affected by such timeout duration
    changes.

    \sa timeout
*/
void QModbusClient::setTimeout(int newTimeout)
{
    if (newTimeout < 50)
        return;

    Q_D(QModbusClient);
    if (d->m_responseTimeoutDuration != newTimeout) {
        d->m_responseTimeoutDuration = newTimeout;
        emit timeoutChanged(newTimeout);
    }
}
void QchNotification::setTimeout(int t) {
    if (t != timeout()) {
        Q_D(QchNotification);
        
        switch (t) {
        case DefaultTimeout:
            d->timeout = NOTIFY_EXPIRES_DEFAULT;
            break;
        case NoTimeout:
            d->timeout = NOTIFY_EXPIRES_NEVER;
            break;
        default:
            d->timeout = t;
            break;
        }
        
        d->setNotificationTimeout();
        emit timeoutChanged();
    }
}