42 #include "private/qdeclarativetimer_p.h" 44 #include <QtCore/qcoreapplication.h> 45 #include <QtCore/qpauseanimation.h> 48 #include <private/qobject_p.h> 119 d->pause.setLoopCount(1);
120 d->pause.setDuration(
d->interval);
136 if (interval !=
d->interval) {
172 if (
d->running != running) {
203 if (repeating !=
d->repeating) {
204 d->repeating = repeating;
233 return d->triggeredOnStart;
239 if (
d->triggeredOnStart != triggeredOnStart) {
300 d->pause.setCurrentTime(0);
301 d->pause.setLoopCount(
d->repeating ? -1 : 1);
302 d->pause.setDuration(
d->interval);
304 if (
d->triggeredOnStart &&
d->firstTick) {
314 d->classBegun =
true;
335 if (
d->running && (
d->pause.currentTime() > 0 || (
d->triggeredOnStart &&
d->firstTick)))
337 d->firstTick =
false;
343 if (
d->repeating || !
d->running)
347 d->firstTick =
false;
#define QT_END_NAMESPACE
This macro expands to.
QDeclarativeParserStatus ** d
void setTriggeredOnStart(bool triggeredOnStart)
void classBegin()
Invoked after class creation, but before any properties have been set.
The QPauseAnimation class provides a pause for QSequentialAnimationGroup.
The QObject class is the base class of all Qt objects.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
QDeclarativeTimerPrivate()
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
bool triggeredOnStart() const
void setRepeating(bool repeating)
void ticked()
This handler is called when the Timer is triggered.
#define Q_DECLARE_PUBLIC(Class)
QDeclarativeTimer(QObject *parent=0)
void setInterval(int interval)
void triggeredOnStartChanged()
removePostedEvents
Removes all events of the given eventType that were posted using postEvent() for receiver.
void setRunning(bool running)
void componentComplete()
Invoked after the root component that caused this instantiation has completed construction.