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/dclock-example.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/dclock-example.html') diff --git a/doc/html/dclock-example.html b/doc/html/dclock-example.html index 2a614d05d..e33951470 100644 --- a/doc/html/dclock-example.html +++ b/doc/html/dclock-example.html @@ -60,7 +60,7 @@ public: DigitalClock( TQWidget *parent=0, const char *name=0 ); protected: // event handlers - void timerEvent( TQTimerEvent * ); + void timerEvent( TQTimerEvent * ); void mousePressEvent( TQMouseEvent * ); private slots: // internal slots @@ -92,7 +92,7 @@ private: // internal data *****************************************************************************/ #include "dclock.h" -#include <ntqdatetime.h> +#include <tqdatetime.h> // @@ -117,9 +117,9 @@ private: // internal data // and another one for switching back from date mode to time mode. // -void DigitalClock::timerEvent( TQTimerEvent *e ) +void DigitalClock::timerEvent( TQTimerEvent *e ) { - if ( e->timerId() == showDateTimer ) // stop showing date + if ( e->timerId() == showDateTimer ) // stop showing date stopDate(); else { // normal timer if ( showDateTimer == -1 ) // not showing date @@ -147,9 +147,9 @@ void DigitalClock::showDate() { if ( showDateTimer != -1 ) // already showing date return; - TQDate date = TQDate::currentDate(); + TQDate date = TQDate::currentDate(); TQString s; - s.sprintf( "%2d %2d", date.month(), date.day() ); + s.sprintf( "%2d %2d", date.month(), date.day() ); display( s ); // sets the LCD number/text showDateTimer = startTimer( 2000 ); // keep this state for 2 secs } @@ -172,7 +172,7 @@ void DigitalClock::stopDate() void DigitalClock::showTime() { showingColon = !showingColon; // toggle/blink colon - TQString s = TQTime::currentTime().toString().left(5); + TQString s = TQTime::currentTime().toString().left(5); if ( !showingColon ) s[2] = ' '; if ( s[0] == '0' ) -- cgit v1.2.3