From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqtimer.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/tqtimer.html') diff --git a/doc/html/tqtimer.html b/doc/html/tqtimer.html index 3e1a5f786..01e88bf9e 100644 --- a/doc/html/tqtimer.html +++ b/doc/html/tqtimer.html @@ -40,7 +40,7 @@ body { background: #ffffff; color: black; }
  • TQTimer ( TQObject * parent = 0, const char * name = 0 )
  • ~TQTimer ()
  • bool isActive () const
  • -
  • int start ( int msec, bool sshot = FALSE )
  • +
  • int start ( int msec, bool sshot = false )
  • void changeInterval ( int msec )
  • void stop ()
  • int timerId () const
  • @@ -71,7 +71,7 @@ parent object is destroyed.
             TQTimer *timer = new TQTimer( myObject );
             connect( timer, TQ_SIGNAL(timeout()), myObject, TQ_SLOT(timerDone()) );
    -        timer->start( 2000, TRUE ); // 2 seconds single-shot timer
    +        timer->start( 2000, true ); // 2 seconds single-shot timer
         

    You can also use the static singleShot() function to create a @@ -84,7 +84,7 @@ user interface:

             TQTimer *t = new TQTimer( myObject );
             connect( t, TQ_SIGNAL(timeout()), TQ_SLOT(processOneThing()) );
    -        t->start( 0, FALSE );
    +        t->start( 0, false );
         

    myObject->processOneThing() will be called repeatedly and should @@ -128,8 +128,8 @@ otherwise it will be started.

    bool TQTimer::isActive () const

    -

    Returns TRUE if the timer is running (pending); otherwise returns -FALSE. +

    Returns true if the timer is running (pending); otherwise returns +false.

    Example: t11/cannon.cpp.

    void TQTimer::singleShot ( int msec, TQObject * receiver, const char * member ) [static] @@ -157,11 +157,11 @@ to create a local TQTimer object.

    The receiver is the receiving object and the member is the slot. The time interval is msec. -

    int TQTimer::start ( int msec, bool sshot = FALSE ) +

    int TQTimer::start ( int msec, bool sshot = false )

    Starts the timer with a msec milliseconds timeout, and returns the ID of the timer, or zero when starting the timer failed. -

    If sshot is TRUE, the timer will be activated only once; +

    If sshot is true, the timer will be activated only once; otherwise it will continue until it is stopped.

    Any pending timer will be stopped.

    See also singleShot(), stop(), changeInterval(), and isActive(). -- cgit v1.2.3