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); } }
void startTicker(QObject *object) { if (!ticker.isActive()) ticker.start(15, object); timeCounter.start(); }
Q_SLOT void on_lineEdit_textEdited() { if (m_queryBehavior == FinalQuery || !m_queryTimer.isActive()) m_queryTimer.start(100, this); }
void Start (int interval) { if (!Timer_.isActive ()) Timer_.start (interval, this); }