From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/tooltip-example.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/tooltip-example.html') diff --git a/doc/html/tooltip-example.html b/doc/html/tooltip-example.html index b3a81e63f..edccc2c2d 100644 --- a/doc/html/tooltip-example.html +++ b/doc/html/tooltip-example.html @@ -74,7 +74,7 @@ public: TQRect tip( const TQPoint & ); protected: - void paintEvent( TQPaintEvent * ); + void paintEvent( TQPaintEvent * ); void mousePressEvent( TQMouseEvent * ); void resizeEvent( TQResizeEvent * ); @@ -100,7 +100,7 @@ private: #include "tooltip.h" #include <ntqapplication.h> -#include <ntqpainter.h> +#include <tqpainter.h> #include <stdlib.h> @@ -147,25 +147,25 @@ TellMe::~TellMe() } -void TellMe::paintEvent( TQPaintEvent * e ) +void TellMe::paintEvent( TQPaintEvent * e ) { - TQPainter p( this ); + TQPainter p( this ); // I try to be efficient here, and repaint only what's needed - if ( e->rect().intersects( r1 ) ) { - p.setBrush( blue ); - p.drawRect( r1 ); + if ( e->rect().intersects( r1 ) ) { + p.setBrush( blue ); + p.drawRect( r1 ); } - if ( e->rect().intersects( r2 ) ) { - p.setBrush( blue ); - p.drawRect( r2 ); + if ( e->rect().intersects( r2 ) ) { + p.setBrush( blue ); + p.drawRect( r2 ); } - if ( e->rect().intersects( r3 ) ) { - p.setBrush( red ); - p.drawRect( r3 ); + if ( e->rect().intersects( r3 ) ) { + p.setBrush( red ); + p.drawRect( r3 ); } } -- cgit v1.2.1