summaryrefslogtreecommitdiffstats
path: root/doc/layout.doc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-24 19:37:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-24 19:37:05 +0900
commit0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc (patch)
treebe5eda50c23980aa4b44de1e8b2e209c6c02d2d1 /doc/layout.doc
parent1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (diff)
downloadtqt-0e787fb7.tar.gz
tqt-0e787fb7.zip
Rename text class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/layout.doc')
-rw-r--r--doc/layout.doc22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/layout.doc b/doc/layout.doc
index 6625d8401..27c3c549b 100644
--- a/doc/layout.doc
+++ b/doc/layout.doc
@@ -99,11 +99,11 @@ resized.
The grid shown above can be produced by the following code:
\code
QGrid *mainGrid = new QGrid( 2 ); // a 2 x n grid
- new QLabel( "One", mainGrid );
- new QLabel( "Two", mainGrid );
- new QLabel( "Three", mainGrid );
- new QLabel( "Four", mainGrid );
- new QLabel( "Five", mainGrid );
+ new TQLabel( "One", mainGrid );
+ new TQLabel( "Two", mainGrid );
+ new TQLabel( "Three", mainGrid );
+ new TQLabel( "Four", mainGrid );
+ new TQLabel( "Five", mainGrid );
\endcode
You can adjust the layout to some extent by calling
@@ -177,14 +177,14 @@ improvements:
QGridLayout *grid = new QGridLayout( main, 1, 1 );
// add the first four widgets with (row, column) addressing
- grid->addWidget( new QLabel( "One", main ), 0, 0 );
- grid->addWidget( new QLabel( "Two", main ), 0, 1 );
- grid->addWidget( new QLabel( "Three", main ), 1, 0 );
- grid->addWidget( new QLabel( "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 QLabel( "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
@@ -199,7 +199,7 @@ a parameter in the constructor.
QLineEdit *field = new QLineEdit( main );
QPushButton *ok = new QPushButton( "OK", main );
QPushButton *cancel = new QPushButton( "Cancel", main );
- QLabel *label = new QLabel( "Write once, compile everywhere.", main );
+ TQLabel *label = new TQLabel( "Write once, compile everywhere.", main );
// a layout on a widget
QVBoxLayout *vbox = new QVBoxLayout( main );