summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmltimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util/qmltimer.cpp')
-rw-r--r--src/declarative/util/qmltimer.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/declarative/util/qmltimer.cpp b/src/declarative/util/qmltimer.cpp
index 2d3a343..b95d6ad 100644
--- a/src/declarative/util/qmltimer.cpp
+++ b/src/declarative/util/qmltimer.cpp
@@ -188,6 +188,32 @@ void QmlTimer::setTriggeredOnStart(bool triggeredOnStart)
}
}
+/*!
+ \qmlmethod Timer::start()
+ \brief Starts the timer.
+
+ If the timer is already running, calling this method has no effect. The
+ \c running property will be true following a call to \c start().
+*/
+void QmlTimer::start()
+{
+ Q_D(QmlTimer);
+ d->pause.start();
+}
+
+/*!
+ \qmlmethod Timer::stop()
+ \brief stops the timer.
+
+ If the timer is not running, calling this method has no effect. The
+ \c running property will be false following a call to \c stop().
+*/
+void QmlTimer::stop()
+{
+ Q_D(QmlTimer);
+ d->pause.stop();
+}
+
void QmlTimer::update()
{
Q_D(QmlTimer);