From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/tooltip-example.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/html/tooltip-example.html') diff --git a/doc/html/tooltip-example.html b/doc/html/tooltip-example.html index 18be95c16..41f83eea6 100644 --- a/doc/html/tooltip-example.html +++ b/doc/html/tooltip-example.html @@ -50,25 +50,25 @@ tool tips on the blue rectangles and a static tool tip on the red one. ** *****************************************************************************/ -#include <ntqwidget.h> +#include <tqwidget.h> #include <ntqtooltip.h> class DynamicTip : public TQToolTip { public: - DynamicTip( TQWidget * parent ); + DynamicTip( TQWidget * parent ); protected: void maybeTip( const TQPoint & ); }; -class TellMe : public TQWidget +class TellMe : public TQWidget { TQ_OBJECT public: - TellMe( TQWidget * parent = 0, const char * name = 0 ); + TellMe( TQWidget * parent = 0, const char * name = 0 ); ~TellMe(); TQRect tip( const TQPoint & ); @@ -104,7 +104,7 @@ private: #include <stdlib.h> -DynamicTip::DynamicTip( TQWidget * parent ) +DynamicTip::DynamicTip( TQWidget * parent ) : TQToolTip( parent ) { // no explicit initialization needed @@ -126,10 +126,10 @@ private: } -TellMe::TellMe( TQWidget * parent , const char * name ) - : TQWidget( parent, name ) +TellMe::TellMe( TQWidget * parent , const char * name ) + : TQWidget( parent, name ) { - setMinimumSize( 30, 30 ); + setMinimumSize( 30, 30 ); r1 = randomRect(); r2 = randomRect(); r3 = randomRect(); @@ -147,7 +147,7 @@ TellMe::~TellMe() } -void TellMe::paintEvent( TQPaintEvent * e ) +void TellMe::paintEvent( TQPaintEvent * e ) { TQPainter p( this ); @@ -170,17 +170,17 @@ void TellMe::paintEvent( void TellMe::mousePressEvent( TQMouseEvent * e ) +void TellMe::mousePressEvent( TQMouseEvent * e ) { if ( r1.contains( e->pos() ) ) r1 = randomRect(); if ( r2.contains( e->pos() ) ) r2 = randomRect(); - repaint(); + repaint(); } -void TellMe::resizeEvent( TQResizeEvent * ) +void TellMe::resizeEvent( TQResizeEvent * ) { if ( !rect().contains( r1 ) ) r1 = randomRect(); @@ -191,7 +191,7 @@ void TellMe::paintEvent( TellMe::randomRect() { - return TQRect( ::rand() % (width() - 20), ::rand() % (height() - 20), + return TQRect( ::rand() % (width() - 20), ::rand() % (height() - 20), 20, 20 ); } @@ -227,9 +227,9 @@ int main( int argc, char ** argv ) TQApplication a( argc, argv ); TellMe mw; - mw.setCaption( "TQt Example - Dynamic Tool Tips" ); + mw.setCaption( "TQt Example - Dynamic Tool Tips" ); a.setMainWidget( &mw ); - mw.show(); + mw.show(); return a.exec(); } -- cgit v1.2.3