Пример #1
0
 void toggleRunning() {
    if (timer.isActive())
       timer.stop();
    else {
       timer.start(10, this);
       el.start();
    }
 }
static PyObject *meth_QBasicTimer_isActive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QBasicTimer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBasicTimer, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isActive();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }
Пример #3
0
 void startTicker(QObject *object)
 {
     if (!ticker.isActive())
         ticker.start(15, object);
     timeCounter.start();
 }
Пример #4
0
 Q_SLOT void on_lineEdit_textEdited() {
    if (m_queryBehavior == FinalQuery || !m_queryTimer.isActive())
       m_queryTimer.start(100, this);
 }
Пример #5
0
				void Start (int interval)
				{
					if (!Timer_.isActive ())
						Timer_.start (interval, this);
				}