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/life-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/life-example.html') diff --git a/doc/html/life-example.html b/doc/html/life-example.html index df8db27d9..d716e9b67 100644 --- a/doc/html/life-example.html +++ b/doc/html/life-example.html @@ -67,7 +67,7 @@ public slots: void clear(); protected: - virtual void paintEvent( TQPaintEvent * ); + virtual void paintEvent( TQPaintEvent * ); virtual void mouseMoveEvent( TQMouseEvent * ); virtual void mousePressEvent( TQMouseEvent * ); virtual void resizeEvent( TQResizeEvent * ); @@ -110,7 +110,7 @@ private: #include "life.h" -#include <ntqpainter.h> +#include <tqpainter.h> #include <ntqdrawutil.h> #include <ntqcheckbox.h> #include <ntqevent.h> @@ -211,23 +211,23 @@ void LifeWidget::nextGeneration() } -void LifeWidget::paintEvent( TQPaintEvent * e ) +void LifeWidget::paintEvent( TQPaintEvent * e ) { - int starti = pos2index( e->rect().left() ); - int stopi = pos2index( e->rect().right() ); - int startj = pos2index( e->rect().top() ); - int stopj = pos2index( e->rect().bottom() ); + int starti = pos2index( e->rect().left() ); + int stopi = pos2index( e->rect().right() ); + int startj = pos2index( e->rect().top() ); + int stopj = pos2index( e->rect().bottom() ); if (stopi > maxi) stopi = maxi; if (stopj > maxj) stopj = maxj; - TQPainter paint( this ); + TQPainter paint( this ); for ( int i = starti; i <= stopi; i++ ) { for ( int j = startj; j <= stopj; j++ ) { if ( cells[current][i][j] ) - qDrawShadePanel( &paint, index2pos( i ), index2pos( j ), + qDrawShadePanel( &paint, index2pos( i ), index2pos( j ), SCALE - 1, SCALE - 1, colorGroup() ); else if ( cells[!current][i][j] ) erase(index2pos( i ), index2pos( j ), SCALE - 1, SCALE - 1); -- cgit v1.2.3