summaryrefslogtreecommitdiffstats
path: root/doc/html/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/layout.html')
-rw-r--r--doc/html/layout.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/layout.html b/doc/html/layout.html
index a21510528..8dc1039c1 100644
--- a/doc/html/layout.html
+++ b/doc/html/layout.html
@@ -59,7 +59,7 @@ layouts and which generates the C++ layout code for you.
<p> <h2> Layout Widgets
</h2>
<a name="1"></a><p> The easiest way to give your widgets a good layout is to use the
-layout widgets: <a href="ntqhbox.html">TQHBox</a>, <a href="ntqvbox.html">TQVBox</a> and <a href="ntqgrid.html">TQGrid</a>. A layout widget
+layout widgets: <a href="ntqhbox.html">TQHBox</a>, <a href="ntqvbox.html">TQVBox</a> and <a href="tqgrid.html">TQGrid</a>. A layout widget
automatically lays out its child widgets in the order they are
constructed. To create more complex layouts, you can nest layout
widgets inside each other. (Note that <a href="tqwidget.html">TQWidget</a> does not have a
@@ -70,16 +70,16 @@ inside a <a href="tqwidget.html">TQWidget</a>.)
<p> <center><img src="qhbox-m.png" alt="Horizontal box with five child widgets"></center>
<p> <li> A <a href="ntqvbox.html">TQVBox</a> lays out its child widgets in a vertical column, top to bottom.
<p> <center><img src="qvbox-m.png" alt="Vertical box with five child widgets"></center>
-<p> <li> A <a href="ntqgrid.html">TQGrid</a> lays out its child widgets in a two dimensional grid.
+<p> <li> A <a href="tqgrid.html">TQGrid</a> lays out its child widgets in a two dimensional grid.
You can specify how many columns the grid has, and it is populated left to
right, beginning a new row when the previous row is full. The grid is
fixed; the child widgets will not flow to other rows as the widget is
resized.
</ul>
-<p> <center><img src="qgrid-m.png" alt="Two-column grid with five child widgets"></center>
+<p> <center><img src="tqgrid-m.png" alt="Two-column grid with five child widgets"></center>
<p> The grid shown above can be produced by the following code:
<pre>
- <a href="ntqgrid.html">TQGrid</a> *mainGrid = new <a href="ntqgrid.html">TQGrid</a>( 2 ); // a 2 x n grid
+ <a href="tqgrid.html">TQGrid</a> *mainGrid = new <a href="tqgrid.html">TQGrid</a>( 2 ); // a 2 x n grid
new <a href="tqlabel.html">TQLabel</a>( "One", mainGrid );
new <a href="tqlabel.html">TQLabel</a>( "Two", mainGrid );
new <a href="tqlabel.html">TQLabel</a>( "Three", mainGrid );
@@ -128,7 +128,7 @@ proportion (but never less than their minimum size hint), e.g.
<p> <center><img src="layout2.png" alt="3 stretch factored widgets in a row"></center>
<p> <h2> <a href="ntqlayout.html">TQLayout</a> subclassing
</h2>
-<a name="3"></a><p> If you need more control over the layout, use a <a href="ntqlayout.html">TQLayout</a> subclass. The layout classes included in TQt are <a href="qgridlayout.html">TQGridLayout</a> and <a href="qboxlayout.html">TQBoxLayout</a>. (<a href="qhboxlayout.html">TQHBoxLayout</a> and <a href="qvboxlayout.html">TQVBoxLayout</a> are trivial subclasses of <a href="qboxlayout.html">TQBoxLayout</a>,
+<a name="3"></a><p> If you need more control over the layout, use a <a href="ntqlayout.html">TQLayout</a> subclass. The layout classes included in TQt are <a href="tqgridlayout.html">TQGridLayout</a> and <a href="qboxlayout.html">TQBoxLayout</a>. (<a href="qhboxlayout.html">TQHBoxLayout</a> and <a href="qvboxlayout.html">TQVBoxLayout</a> are trivial subclasses of <a href="qboxlayout.html">TQBoxLayout</a>,
that are simpler to use and make the code easier to read.)
<p> When you use a layout, you must insert each child both into its parent
widget (done in the constructor) and into its layout (typically done
@@ -141,22 +141,22 @@ improvements:
<a href="tqwidget.html">TQWidget</a> *main = new <a href="tqwidget.html">TQWidget</a>;
// make a 1x1 grid; it will auto-expand
- <a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( main, 1, 1 );
+ <a href="tqgridlayout.html">TQGridLayout</a> *grid = new <a href="tqgridlayout.html">TQGridLayout</a>( main, 1, 1 );
// add the first four widgets with (row, column) addressing
- grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "One", main ), 0, 0 );
- grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Two", main ), 0, 1 );
- grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Three", main ), 1, 0 );
- grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Four", main ), 1, 1 );
+ grid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "One", main ), 0, 0 );
+ grid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Two", main ), 0, 1 );
+ grid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Three", main ), 1, 0 );
+ grid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Four", main ), 1, 1 );
// add the last widget on row 2, spanning from column 0 to
// column 1, and center aligned
- grid-&gt;<a href="qgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Five", main ), 2, 2, 0, 1,
+ grid-&gt;<a href="tqgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( new <a href="tqlabel.html">TQLabel</a>( "Five", main ), 2, 2, 0, 1,
TQt::AlignCenter );
// let the ratio between the widths of columns 0 and 1 be 2:3
- grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 0, 2 );
- grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 3 );
+ grid-&gt;<a href="tqgridlayout.html#setColStretch">setColStretch</a>( 0, 2 );
+ grid-&gt;<a href="tqgridlayout.html#setColStretch">setColStretch</a>( 1, 3 );
</pre>
<p> You can insert layouts inside a layout by giving the parent layout as
@@ -212,7 +212,7 @@ Multiple calls to updateGeometry() will only cause one recalculation.
<p> Even if you implement heightForWidth(), it is still necessary to
provide a good sizeHint(). The sizeHint() provides the preferred width
of the widget, and it is used by <a href="ntqlayout.html">TQLayout</a> subclasses that do not
-support heightForWidth() (both <a href="qgridlayout.html">TQGridLayout</a> and <a href="qboxlayout.html">TQBoxLayout</a> support it).
+support heightForWidth() (both <a href="tqgridlayout.html">TQGridLayout</a> and <a href="qboxlayout.html">TQBoxLayout</a> support it).
<p> For further guidance when implementing these functions, see their
implementations in existing TQt classes that have similar layout
requirements to your new widget.