summaryrefslogtreecommitdiffstats
path: root/doc/html/layout-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-08-16 19:11:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-16 19:11:00 +0900
commit82ecd83484c9fa1ede059986ab771e74e33e68ef (patch)
treed0e76f19632bb02fc55028625bdb903902e1bac1 /doc/html/layout-example.html
parentc55ef27a2c511c29a8a82d00bd2ede1fb02cfa41 (diff)
downloadtqt3-82ecd83484c9fa1ede059986ab771e74e33e68ef.tar.gz
tqt3-82ecd83484c9fa1ede059986ab771e74e33e68ef.zip
Rename layout nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/layout-example.html')
-rw-r--r--doc/html/layout-example.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html
index b386c2fe3..2bdfade02 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="tqgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">TQBoxLayout</a> etc.
+classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="tqboxlayout.html">TQBoxLayout</a> etc.
<p> <hr>
<p> Implementation:
<p> <pre>/****************************************************************************
@@ -51,7 +51,7 @@ classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html"
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
#include &lt;<a href="tqcolor-h.html">tqcolor.h</a>&gt;
#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="tqlayout-h.html">tqlayout.h</a>&gt;
#include &lt;<a href="tqlineedit-h.html">tqlineedit.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;
@@ -69,7 +69,7 @@ public:
{
// Make the top-level layout; a vertical box to contain all widgets
// and sub-layouts.
- <a href="qboxlayout.html">TQBoxLayout</a> *topLayout = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 5 );
+ <a href="tqboxlayout.html">TQBoxLayout</a> *topLayout = new <a href="tqvboxlayout.html">TQVBoxLayout</a>( this, 5 );
// Create a menubar...
<a href="tqmenubar.html">TQMenuBar</a> *menubar = new <a href="tqmenubar.html">TQMenuBar</a>( this );
@@ -80,10 +80,10 @@ public:
menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;File", popup );
// ...and tell the layout about it.
-<a name="x539"></a> topLayout-&gt;<a href="ntqlayout.html#setMenuBar">setMenuBar</a>( menubar );
+<a name="x539"></a> topLayout-&gt;<a href="tqlayout.html#setMenuBar">setMenuBar</a>( menubar );
// Make an hbox that will hold a row of buttons.
- <a href="qboxlayout.html">TQBoxLayout</a> *buttons = new <a href="qhboxlayout.html">TQHBoxLayout</a>( topLayout );
+ <a href="tqboxlayout.html">TQBoxLayout</a> *buttons = new <a href="tqhboxlayout.html">TQHBoxLayout</a>( topLayout );
int i;
for ( i = 1; i &lt;= 4; i++ ) {
<a href="tqpushbutton.html">TQPushButton</a>* but = new <a href="tqpushbutton.html">TQPushButton</a>( this );
@@ -95,24 +95,24 @@ public:
// stretch horizontally. The buttons will not stretch
// vertically, since bigWidget below will take up vertical
// stretch.
-<a name="x529"></a> buttons-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( but, 10 );
+<a name="x529"></a> buttons-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( but, 10 );
// (Actually, the result would have been the same with a
// stretch factor of 0; if no items in a layout have non-zero
// stretch, the space is divided equally between members.)
}
// Make another hbox that will hold a left-justified row of buttons.
- <a href="qboxlayout.html">TQBoxLayout</a> *buttons2 = new <a href="qhboxlayout.html">TQHBoxLayout</a>( topLayout );
+ <a href="tqboxlayout.html">TQBoxLayout</a> *buttons2 = new <a href="tqhboxlayout.html">TQHBoxLayout</a>( topLayout );
<a href="tqpushbutton.html">TQPushButton</a>* but = new <a href="tqpushbutton.html">TQPushButton</a>( "Button five", this );
- buttons2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( but );
+ buttons2-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( but );
but = new <a href="tqpushbutton.html">TQPushButton</a>( "Button 6", this );
- buttons2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( but );
+ buttons2-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( but );
// Fill up the rest of the hbox with stretchable space, so that
// the buttons get their minimum width and are pushed to the left.
-<a name="x528"></a> buttons2-&gt;<a href="qboxlayout.html#addStretch">addStretch</a>( 10 );
+<a name="x528"></a> buttons2-&gt;<a href="tqboxlayout.html#addStretch">addStretch</a>( 10 );
// Make a big widget that will grab all space in the middle.
<a href="tqmultilineedit.html">TQMultiLineEdit</a> *bigWidget = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this );
@@ -122,8 +122,8 @@ public:
// Set vertical stretch factor to 10 to let the bigWidget stretch
// vertically. It will stretch horizontally because there are no
// widgets beside it to take up horizontal stretch.
- // topLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( bigWidget, 10 );
- topLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( bigWidget );
+ // topLayout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( bigWidget, 10 );
+ topLayout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( bigWidget );
// Make a grid that will hold a vertical table of TQLabel/TQLineEdit
// pairs next to a large TQMultiLineEdit.
@@ -175,9 +175,9 @@ public:
<a name="x545"></a><a name="x537"></a> sb-&gt;<a href="tqwidget.html#setFixedHeight">setFixedHeight</a>( sb-&gt;<a href="tqwidget.html#sizeHint">sizeHint</a>().height() );
<a name="x535"></a> sb-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( AlignVCenter | AlignLeft );
- topLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( sb );
+ topLayout-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( sb );
-<a name="x538"></a> topLayout-&gt;<a href="ntqlayout.html#activate">activate</a>();
+<a name="x538"></a> topLayout-&gt;<a href="tqlayout.html#activate">activate</a>();
}
ExampleWidget::~ExampleWidget()