summaryrefslogtreecommitdiffstats
path: root/doc/layout.doc
diff options
context:
space:
mode:
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 );