From 2cbcca0db1343e1c40e52af729a5eb34ca8a7e37 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 27 Jun 2024 21:53:17 +0900 Subject: Rename date and time nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/aclock-example.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/html/aclock-example.html') diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html index 88320ca96..7f241db5a 100644 --- a/doc/html/aclock-example.html +++ b/doc/html/aclock-example.html @@ -50,7 +50,7 @@ This example displays an analog clock widget. #define ACLOCK_H #include <tqwidget.h> -#include <ntqdatetime.h> +#include <tqdatetime.h> class TQTimer; class AnalogClock : public TQWidget // analog clock widget @@ -71,12 +71,12 @@ private slots: void timeout(); public slots: - void setTime( const TQTime & t ); + void setTime( const TQTime & t ); private: TQPoint clickPos; - TQTime time; - TQTimer *internalTimer; + TQTime time; + TQTimer *internalTimer; }; @@ -96,7 +96,7 @@ private: *****************************************************************************/ #include "aclock.h" -#include <ntqtimer.h> +#include <tqtimer.h> #include <ntqpainter.h> #include <ntqbitmap.h> @@ -107,10 +107,10 @@ private: AnalogClock::AnalogClock( TQWidget *parent, const char *name ) : TQWidget( parent, name ) { - time = TQTime::currentTime(); // get current time - internalTimer = new TQTimer( this ); // create internal timer - connect( internalTimer, TQ_SIGNAL(timeout()), TQ_SLOT(timeout()) ); - internalTimer->start( 5000 ); // emit signal every 5 seconds + time = TQTime::currentTime(); // get current time + internalTimer = new TQTimer( this ); // create internal timer + connect( internalTimer, TQ_SIGNAL(timeout()), TQ_SLOT(timeout()) ); + internalTimer->start( 5000 ); // emit signal every 5 seconds } void AnalogClock::mousePressEvent( TQMouseEvent *e ) @@ -133,10 +133,10 @@ void AnalogClock::mousePressEvent( < // When we set an explicit time we don't want the timeout() slot to be // called anymore as this relies on currentTime() // -void AnalogClock::setTime( const TQTime & t ) +void AnalogClock::setTime( const TQTime & t ) { time = t; - disconnect( internalTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) ); + disconnect( internalTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) ); if (autoMask()) updateMask(); else @@ -146,10 +146,10 @@ void AnalogClock::setTime( const TQTime< void AnalogClock::timeout() { - TQTime old_time = time; - time = TQTime::currentTime(); - if ( old_time.minute() != time.minute() - || old_time.hour() != time.hour() ) { // minute or hour has changed + TQTime old_time = time; + time = TQTime::currentTime(); + if ( old_time.minute() != time.minute() + || old_time.hour() != time.hour() ) { // minute or hour has changed if (autoMask()) updateMask(); else -- cgit v1.2.3