diff options
Diffstat (limited to 'doc/html/ntqtimer.html')
| -rw-r--r-- | doc/html/ntqtimer.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/ntqtimer.html b/doc/html/ntqtimer.html index b67890351..d944f828b 100644 --- a/doc/html/ntqtimer.html +++ b/doc/html/ntqtimer.html @@ -41,7 +41,7 @@ body { background: #ffffff; color: black; } <li class=fn><a href="#TQTimer"><b>TQTimer</b></a> ( TQObject * parent = 0, const char * name = 0 )</li> <li class=fn><a href="#~TQTimer"><b>~TQTimer</b></a> ()</li> <li class=fn>bool <a href="#isActive"><b>isActive</b></a> () const</li> -<li class=fn>int <a href="#start"><b>start</b></a> ( int msec, bool sshot = FALSE )</li> +<li class=fn>int <a href="#start"><b>start</b></a> ( int msec, bool sshot = false )</li> <li class=fn>void <a href="#changeInterval"><b>changeInterval</b></a> ( int msec )</li> <li class=fn>void <a href="#stop"><b>stop</b></a> ()</li> <li class=fn>int <a href="#timerId"><b>timerId</b></a> () const</li> @@ -72,7 +72,7 @@ parent object is destroyed. <pre> TQTimer *timer = new TQTimer( myObject ); <a href="ntqobject.html#connect">connect</a>( timer, TQ_SIGNAL(<a href="#timeout">timeout</a>()), myObject, TQ_SLOT(timerDone()) ); - timer-><a href="#start">start</a>( 2000, TRUE ); // 2 seconds single-shot timer + timer-><a href="#start">start</a>( 2000, true ); // 2 seconds single-shot timer </pre> <p> You can also use the static <a href="#singleShot">singleShot</a>() function to create a @@ -85,7 +85,7 @@ user interface: <pre> TQTimer *t = new TQTimer( myObject ); <a href="ntqobject.html#connect">connect</a>( t, TQ_SIGNAL(<a href="#timeout">timeout</a>()), TQ_SLOT(processOneThing()) ); - t-><a href="#start">start</a>( 0, FALSE ); + t-><a href="#start">start</a>( 0, false ); </pre> <p> myObject->processOneThing() will be called repeatedly and should @@ -129,8 +129,8 @@ otherwise it will be started. <h3 class=fn>bool <a name="isActive"></a>TQTimer::isActive () const </h3> -<p> Returns TRUE if the timer is running (pending); otherwise returns -FALSE. +<p> Returns true if the timer is running (pending); otherwise returns +false. <p>Example: <a href="tutorial1-11.html#x2376">t11/cannon.cpp</a>. <h3 class=fn>void <a name="singleShot"></a>TQTimer::singleShot ( int msec, <a href="ntqobject.html">TQObject</a> * receiver, const char * member )<tt> [static]</tt> @@ -158,11 +158,11 @@ to create a local TQTimer object. <p> The <em>receiver</em> is the receiving object and the <em>member</em> is the slot. The time interval is <em>msec</em>. -<h3 class=fn>int <a name="start"></a>TQTimer::start ( int msec, bool sshot = FALSE ) +<h3 class=fn>int <a name="start"></a>TQTimer::start ( int msec, bool sshot = false ) </h3> Starts the timer with a <em>msec</em> milliseconds timeout, and returns the ID of the timer, or zero when starting the timer failed. -<p> If <em>sshot</em> is TRUE, the timer will be activated only once; +<p> If <em>sshot</em> is true, the timer will be activated only once; otherwise it will continue until it is stopped. <p> Any pending timer will be stopped. <p> <p>See also <a href="#singleShot">singleShot</a>(), <a href="#stop">stop</a>(), <a href="#changeInterval">changeInterval</a>(), and <a href="#isActive">isActive</a>(). |
