summaryrefslogtreecommitdiffstats
path: root/doc/html/layout-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/layout-example.html')
-rw-r--r--doc/html/layout-example.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html
index 6abf2a7ed..b386c2fe3 100644
--- a/doc/html/layout-example.html
+++ b/doc/html/layout-example.html
@@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
<p>
This example shows simple and intermediate use of TQt's layout
-classes, <a href="qgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">TQBoxLayout</a> etc.
+classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">TQBoxLayout</a> etc.
<p> <hr>
<p> Implementation:
<p> <pre>/****************************************************************************
@@ -53,7 +53,7 @@ classes, <a href="qgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">
#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="tqlineedit-h.html">tqlineedit.h</a>&gt;
-#include &lt;<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>&gt;
+#include &lt;<a href="tqmultilineedit-h.html">tqmultilineedit.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
@@ -89,7 +89,7 @@ public:
<a href="tqpushbutton.html">TQPushButton</a>* but = new <a href="tqpushbutton.html">TQPushButton</a>( this );
<a href="tqstring.html">TQString</a> s;
<a name="x542"></a> s.<a href="tqstring.html#sprintf">sprintf</a>( "Button %d", i );
-<a name="x530"></a> but-&gt;<a href="ntqbutton.html#setText">setText</a>( s );
+<a name="x530"></a> but-&gt;<a href="tqbutton.html#setText">setText</a>( s );
// Set horizontal <a href="layout.html#stretch-factor">stretch factor</a> to 10 to let the buttons
// stretch horizontally. The buttons will not stretch
@@ -115,9 +115,9 @@ public:
<a name="x528"></a> buttons2-&gt;<a href="qboxlayout.html#addStretch">addStretch</a>( 10 );
// Make a big widget that will grab all space in the middle.
- <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *bigWidget = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this );
+ <a href="tqmultilineedit.html">TQMultiLineEdit</a> *bigWidget = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this );
bigWidget-&gt;<a href="tqtextedit.html#setText">setText</a>( "This widget will get all the remaining space" );
-<a name="x531"></a> bigWidget-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Plain );
+<a name="x531"></a> bigWidget-&gt;<a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Plain );
// Set vertical stretch factor to 10 to let the bigWidget stretch
// vertically. It will stretch horizontally because there are no
@@ -137,38 +137,38 @@ public:
// Let the grid-layout have a spacing of 10 pixels between
// widgets, overriding the default from topLayout.
- <a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( topLayout, 0, 0, 10 );
+ <a href="tqgridlayout.html">TQGridLayout</a> *grid = new <a href="tqgridlayout.html">TQGridLayout</a>( topLayout, 0, 0, 10 );
int row;
for ( row = 0; row &lt; numRows; row++ ) {
<a href="tqlineedit.html">TQLineEdit</a> *ed = new <a href="tqlineedit.html">TQLineEdit</a>( this );
// The line edit goes in the second column
-<a name="x533"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( ed, row, linedCol );
+<a name="x533"></a> grid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( ed, row, linedCol );
// Make a label that is a buddy of the line edit
<a href="tqstring.html">TQString</a> s;
s.<a href="tqstring.html#sprintf">sprintf</a>( "Line &amp;%d", row+1 );
<a href="tqlabel.html">TQLabel</a> *label = new <a href="tqlabel.html">TQLabel</a>( ed, s, this );
// The label goes in the first column.
- grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( label, row, labelCol );
+ grid-&gt;<a href="tqgridlayout.html#addWidget">addWidget</a>( label, row, labelCol );
}
// The multiline edit will cover the entire vertical range of the
// grid (rows 0 to numRows) and stay in column 2.
- <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *med = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this );
-<a name="x532"></a> grid-&gt;<a href="qgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( med, 0, -1, multiCol, multiCol );
+ <a href="tqmultilineedit.html">TQMultiLineEdit</a> *med = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this );
+<a name="x532"></a> grid-&gt;<a href="tqgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( med, 0, -1, multiCol, multiCol );
// The labels will take the space they need. Let the remaining
// horizontal space be shared so that the multiline edit gets
// twice as much as the line edit.
-<a name="x534"></a> grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( linedCol, 10 );
- grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( multiCol, 20 );
+<a name="x534"></a> grid-&gt;<a href="tqgridlayout.html#setColStretch">setColStretch</a>( linedCol, 10 );
+ grid-&gt;<a href="tqgridlayout.html#setColStretch">setColStretch</a>( multiCol, 20 );
// Add a widget at the bottom.
<a href="tqlabel.html">TQLabel</a>* sb = new <a href="tqlabel.html">TQLabel</a>( this );
sb-&gt;<a href="tqlabel.html#setText">setText</a>( "Let's pretend this is a status bar" );
- sb-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ sb-&gt;<a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
// This widget will use all horizontal space, and have a fixed height.
// we should have made a subclass and implemented sizePolicy there...