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/tutorial2-08.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/tutorial2-08.html') diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html index ba69ea915..da9766384 100644 --- a/doc/html/tutorial2-08.html +++ b/doc/html/tutorial2-08.html @@ -170,7 +170,7 @@ key an accelerator for the Cancel button.

We add the buttonBox layout to the tableButtonBox and the layout is complete. -

        connect( table, TQ_SIGNAL( clicked(int,int,int,const TQPoint&) ),
+

        connect( table, TQ_SIGNAL( clicked(int,int,int,const TQPoint&) ),
                  this, TQ_SLOT( setColor(int,int) ) );
         connect( table, TQ_SIGNAL( currentChanged(int,int) ),
                  this, TQ_SLOT( currentChanged(int,int) ) );
@@ -202,8 +202,8 @@ requires no further code or action on our part.
         patterns[1]  = TQPixmap( pattern02 );
 

We create a pixmap for every brush pattern and store them in the patterns array. -

        TQRect rect = table->cellRect( 0, 1 );
-        TQPixmap pix( rect.width(), rect.height() );
+

        TQRect rect = table->cellRect( 0, 1 );
+        TQPixmap pix( rect.width(), rect.height() );
 

We obtain the rectangle that will be occupied by each color cell and create a blank pixmap of that size. @@ -217,7 +217,7 @@ create a blank pixmap of that size. m_decimalPlaces ) ); TQColor color = element.valueColor(); - pix.fill( color ); + pix.fill( color ); table->setPixmap( i, 1, pix ); table->setText( i, 1, color.name() ); @@ -230,7 +230,7 @@ create a blank pixmap of that size. table->setText( i, 3, element.label() ); color = element.labelColor(); - pix.fill( color ); + pix.fill( color ); table->setPixmap( i, 4, pix ); table->setText( i, 4, color.name() );

@@ -294,8 +294,8 @@ function and put the focus back into the table. TQColor( table->text( row, col ) ), this, "color dialog" ); if ( color.isValid() ) { - TQPixmap pix = table->pixmap( row, col ); - pix.fill( color ); + TQPixmap pix = table->pixmap( row, col ); + pix.fill( color ); table->setPixmap( row, col, pix ); table->setText( row, col, color.name() ); } -- cgit v1.2.3