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/canvas-example.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/canvas-example.html') diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 5a6431723..d14444d2f 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -139,7 +139,7 @@ private: #include <ntqmessagebox.h> #include <tqmenubar.h> #include <ntqapplication.h> -#include <ntqpainter.h> +#include <tqpainter.h> #include <ntqprinter.h> #include <ntqlabel.h> #include <tqimage.h> @@ -178,7 +178,7 @@ public: int rtti () const { return imageRTTI; } bool hit( const TQPoint&) const; protected: - void drawShape( TQPainter & ); + void drawShape( TQPainter & ); private: TQImage image; TQPixmap pixmap; @@ -194,9 +194,9 @@ private: } -void ImageItem::drawShape( TQPainter &p ) +void ImageItem::drawShape( TQPainter &p ) { - p.drawPixmap( int(x()), int(y()), pixmap ); + p.drawPixmap( int(x()), int(y()), pixmap ); } bool ImageItem::hit( const TQPoint &p ) const @@ -650,7 +650,7 @@ void Main::print() { if ( !printer ) printer = new TQPrinter; if ( printer->setup(this) ) { - TQPainter pp(printer); + TQPainter pp(printer); canvas.drawArea(TQRect(0,0,canvas.width(),canvas.height()),&pp,FALSE); } } @@ -804,7 +804,7 @@ void Main::addMesh() int x0 = 0; int y0 = 0; - if ( !tb ) tb = new TQBrush( TQt::red ); + if ( !tb ) tb = new TQBrush( TQt::red ); if ( !tp ) tp = new TQPen( TQt::black ); int nodecount = 0; -- cgit v1.2.3