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/layout.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/layout.html') diff --git a/doc/html/layout.html b/doc/html/layout.html index 0358ed903..e2c643440 100644 --- a/doc/html/layout.html +++ b/doc/html/layout.html @@ -80,11 +80,11 @@ resized.

The grid shown above can be produced by the following code:

     TQGrid *mainGrid = new TQGrid( 2 ); // a 2 x n grid
-    new TQLabel( "One", mainGrid );
-    new TQLabel( "Two", mainGrid );
-    new TQLabel( "Three", mainGrid );
-    new TQLabel( "Four", mainGrid );
-    new TQLabel( "Five", mainGrid );
+    new TQLabel( "One", mainGrid );
+    new TQLabel( "Two", mainGrid );
+    new TQLabel( "Three", mainGrid );
+    new TQLabel( "Four", mainGrid );
+    new TQLabel( "Five", mainGrid );
 

You can adjust the layout to some extent by calling @@ -144,14 +144,14 @@ improvements: TQGridLayout *grid = new TQGridLayout( main, 1, 1 ); // add the first four widgets with (row, column) addressing - grid->addWidget( new TQLabel( "One", main ), 0, 0 ); - grid->addWidget( new TQLabel( "Two", main ), 0, 1 ); - grid->addWidget( new TQLabel( "Three", main ), 1, 0 ); - grid->addWidget( new TQLabel( "Four", main ), 1, 1 ); + grid->addWidget( new TQLabel( "One", main ), 0, 0 ); + grid->addWidget( new TQLabel( "Two", main ), 0, 1 ); + grid->addWidget( new TQLabel( "Three", main ), 1, 0 ); + grid->addWidget( new TQLabel( "Four", main ), 1, 1 ); // add the last widget on row 2, spanning from column 0 to // column 1, and center aligned - grid->addMultiCellWidget( new TQLabel( "Five", main ), 2, 2, 0, 1, + grid->addMultiCellWidget( new TQLabel( "Five", main ), 2, 2, 0, 1, TQt::AlignCenter ); // let the ratio between the widths of columns 0 and 1 be 2:3 @@ -166,7 +166,7 @@ a parameter in the constructor. TQLineEdit *field = new TQLineEdit( main ); TQPushButton *ok = new TQPushButton( "OK", main ); TQPushButton *cancel = new TQPushButton( "Cancel", main ); - TQLabel *label = new TQLabel( "Write once, compile everywhere.", main ); + TQLabel *label = new TQLabel( "Write once, compile everywhere.", main ); // a layout on a widget TQVBoxLayout *vbox = new TQVBoxLayout( main ); -- cgit v1.2.3