From 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 24 Jul 2024 19:37:05 +0900 Subject: Rename text class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/qmag-example.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/qmag-example.html') diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html index 5debea21f..3e8f4f0ba 100644 --- a/doc/html/qmag-example.html +++ b/doc/html/qmag-example.html @@ -56,7 +56,7 @@ magnified area as a .bmp file. #include <ntqpushbutton.h> #include <tqpixmap.h> #include <tqimage.h> -#include <ntqlabel.h> +#include <tqlabel.h> #include <tqfiledialog.h> #include <tqregexp.h> @@ -98,7 +98,7 @@ private: TQPixmap pm; // pixmap, magnified TQPixmap p; // pixmap TQImage image; // image of pixmap (for RGB) - TQLabel *rgb; + TQLabel *rgb; int yoffset; // pixels in addition to the actual picture int z; // magnification factor int r; // autorefresh rate (index into refreshrates) @@ -185,10 +185,10 @@ static const int timer[] = { setRefresh(1); setZoom(5); - rgb = new TQLabel( this ); + rgb = new TQLabel( this ); TQ_CHECK_PTR( rgb ); - rgb->setText( "" ); - rgb->setAlignment( AlignVCenter ); + rgb->setText( "" ); + rgb->setAlignment( AlignVCenter ); rgb->resize( width(), rgb->fontMetrics().height() + 4 ); #ifdef COMPLEX_GUI @@ -369,7 +369,7 @@ void MagWidget::grabAround(TQPoint pos) if ( grabbing || pm.isNull() || e->pos().y() > height() - (zoom ? zoom->fontMetrics().height() - 4 : 0) || e->pos().y() < (zoom ? zoom->height()+4 : 4) ) { - rgb->setText( "" ); + rgb->setText( "" ); } else { int x,y; x = e->pos().x() / z; @@ -385,14 +385,14 @@ void MagWidget::grabAround(TQPoint pos) TQString label; label.sprintf( "x=%d, y=%d %s", x+grabx, y+graby, (const char*)pixelinfo ); - rgb->setText( label ); + rgb->setText( label ); } } void MagWidget::focusOutEvent( TQFocusEvent * ) { - rgb->setText( "" ); + rgb->setText( "" ); } -- cgit v1.2.3