From 42957a3f812a1db64a9ae452baa2d3fbc35f2466 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 12 Aug 2024 22:02:11 +0900 Subject: Rename more widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/small-table-example-example.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/small-table-example-example.html') diff --git a/doc/html/small-table-example-example.html b/doc/html/small-table-example-example.html index 0ac7ce43a..95ae77862 100644 --- a/doc/html/small-table-example-example.html +++ b/doc/html/small-table-example-example.html @@ -33,7 +33,7 @@ body { background: #ffffff; color: black; }

-This example displays a TQTable and some TQTableItems. +This example displays a TQTable and some TQTableItems.


Implementation:

/****************************************************************************
@@ -47,7 +47,7 @@ This example displays a TQTable and some ntqapplication.h>
-#include <ntqtable.h>
+#include <tqtable.h>
 #include <tqimage.h>
 #include <tqpixmap.h>
 #include <tqstringlist.h>
@@ -66,18 +66,18 @@ int main( int argc, char **argv )
 {
     TQApplication app( argc, argv );
 
-    TQTable table( numRows, numCols );
+    TQTable table( numRows, numCols );
 
-    TQHeader *header = table.horizontalHeader();
-    header->setLabel( 0, TQObject::tr( "Tiny" ), 40 );
-    header->setLabel( 1, TQObject::tr( "Checkboxes" ) );
-    header->setLabel( 5, TQObject::tr( "Combos" ) );
-    table.setColumnMovingEnabled(TRUE);
+    TQHeader *header = table.horizontalHeader();
+    header->setLabel( 0, TQObject::tr( "Tiny" ), 40 );
+    header->setLabel( 1, TQObject::tr( "Checkboxes" ) );
+    header->setLabel( 5, TQObject::tr( "Combos" ) );
+    table.setColumnMovingEnabled(TRUE);
 
     TQImage img( qtlogo_xpm );
-    TQPixmap pix = img.scaleHeight( table.rowHeight(3) );
-    table.setPixmap( 3, 2, pix );
-    table.setText( 3, 2, "A Pixmap" );
+    TQPixmap pix = img.scaleHeight( table.rowHeight(3) );
+    table.setPixmap( 3, 2, pix );
+    table.setText( 3, 2, "A Pixmap" );
 
     TQStringList comboEntries;
     comboEntries << "one" << "two" << "three" << "four";
@@ -85,10 +85,10 @@ int main( int argc, char **argv )
     for ( int i = 0; i < numRows; ++i ){
         TQComboTableItem * item = new TQComboTableItem( &table, comboEntries, FALSE );
         item->setCurrentItem( i % 4 );
-        table.setItem( i, 5, item );
+        table.setItem( i, 5, item );
     }
     for ( int j = 0; j < numRows; ++j )
-        table.setItem( j, 1, new TQCheckTableItem( &table, "Check me" ) );
+        table.setItem( j, 1, new TQCheckTableItem( &table, "Check me" ) );
 
     app.setMainWidget( &table );
     table.show();
-- 
cgit v1.2.3