diff -r ef0373b55136 -r 758a864f9613 src/declarative/util/qdeclarativetimer.cpp --- a/src/declarative/util/qdeclarativetimer.cpp Fri Sep 17 08:34:18 2010 +0300 +++ b/src/declarative/util/qdeclarativetimer.cpp Mon Oct 04 01:19:32 2010 +0300 @@ -70,14 +70,16 @@ /*! \qmlclass Timer QDeclarativeTimer + \ingroup qml-utility-elements \since 4.7 \brief The Timer item triggers a handler at a specified interval. - A timer can be used to trigger an action either once, or repeatedly + A Timer can be used to trigger an action either once, or repeatedly at a given interval. - Here is a timer that shows the current date and time, and updates - the text every 500 milliseconds: + Here is a Timer that shows the current date and time, and updates + the text every 500 milliseconds. It uses the JavaScript \c Date + object to access the current time. \qml import Qt 4.7 @@ -88,9 +90,7 @@ onTriggered: time.text = Date().toString() } - Text { - id: time - } + Text { id: time } } \endqml