From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/tooltip-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tooltip-example.html') diff --git a/doc/html/tooltip-example.html b/doc/html/tooltip-example.html index edccc2c2d..d0a60c690 100644 --- a/doc/html/tooltip-example.html +++ b/doc/html/tooltip-example.html @@ -60,7 +60,7 @@ public: DynamicTip( TQWidget * parent ); protected: - void maybeTip( const TQPoint & ); + void maybeTip( const TQPoint & ); }; @@ -71,7 +71,7 @@ public: TellMe( TQWidget * parent = 0, const char * name = 0 ); ~TellMe(); - TQRect tip( const TQPoint & ); + TQRect tip( const TQPoint & ); protected: void paintEvent( TQPaintEvent * ); @@ -79,9 +79,9 @@ protected: void resizeEvent( TQResizeEvent * ); private: - TQRect randomRect(); + TQRect randomRect(); - TQRect r1, r2, r3; + TQRect r1, r2, r3; DynamicTip * t; }; @@ -111,17 +111,17 @@ private: } -void DynamicTip::maybeTip( const TQPoint &pos ) +void DynamicTip::maybeTip( const TQPoint &pos ) { if ( !parentWidget()->inherits( "TellMe" ) ) return; - TQRect r( ((TellMe*)parentWidget())->tip(pos) ); - if ( !r.isValid() ) + TQRect r( ((TellMe*)parentWidget())->tip(pos) ); + if ( !r.isValid() ) return; TQString s; - s.sprintf( "position: %d,%d", r.center().x(), r.center().y() ); + s.sprintf( "position: %d,%d", r.center().x(), r.center().y() ); tip( r, s ); } @@ -196,7 +196,7 @@ TQRect TellMe::randomRect() } -TQRect TellMe::tip( const TQPoint & p ) +TQRect TellMe::tip( const TQPoint & p ) { if ( r1.contains( p ) ) return r1; -- cgit v1.2.3