summaryrefslogtreecommitdiffstats
path: root/doc/html/customlayout-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/customlayout-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/customlayout-example.html')
-rw-r--r--doc/html/customlayout-example.html268
1 files changed, 134 insertions, 134 deletions
diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html
index a2ff2fdb7..38852c3dc 100644
--- a/doc/html/customlayout-example.html
+++ b/doc/html/customlayout-example.html
@@ -55,31 +55,31 @@ like card layouts, border layout and flow layouts.
#ifndef FLOW_H
#define FLOW_H
-#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="tqptrlist-h.html">tqptrlist.h</a>&gt;
-class SimpleFlow : public <a href="ntqlayout.html">TQLayout</a>
+class SimpleFlow : public <a href="tqlayout.html">TQLayout</a>
{
public:
SimpleFlow( <a href="tqwidget.html">TQWidget</a> *parent, int border=0, int space=-1,
const char *name=0 )
- : <a href="ntqlayout.html">TQLayout</a>( parent, border, space, name ),
+ : <a href="tqlayout.html">TQLayout</a>( parent, border, space, name ),
cached_width(0) {}
- SimpleFlow( <a href="ntqlayout.html">TQLayout</a>* parent, int space=-1, const char *name=0 )
- : <a href="ntqlayout.html">TQLayout</a>( parent, space, name ),
+ SimpleFlow( <a href="tqlayout.html">TQLayout</a>* parent, int space=-1, const char *name=0 )
+ : <a href="tqlayout.html">TQLayout</a>( parent, space, name ),
cached_width(0) {}
SimpleFlow( int space=-1, const char *name=0 )
- : <a href="ntqlayout.html">TQLayout</a>( space, name ),
+ : <a href="tqlayout.html">TQLayout</a>( space, name ),
cached_width(0) {}
~SimpleFlow();
- void addItem( <a href="qlayoutitem.html">TQLayoutItem</a> *item);
+ void addItem( <a href="tqlayoutitem.html">TQLayoutItem</a> *item);
bool hasHeightForWidth() const;
int heightForWidth( int ) const;
<a href="tqsize.html">TQSize</a> sizeHint() const;
<a href="tqsize.html">TQSize</a> minimumSize() const;
- <a href="qlayoutiterator.html">TQLayoutIterator</a> iterator();
+ <a href="tqlayoutiterator.html">TQLayoutIterator</a> iterator();
TQSizePolicy::ExpandData expanding() const;
protected:
@@ -112,14 +112,14 @@ private:
#include "flow.h"
-class SimpleFlowIterator :public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
+class SimpleFlowIterator :public <a href="tqglayoutiterator.html">TQGLayoutIterator</a>
{
public:
SimpleFlowIterator( <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l ) :idx(0), list(l) {}
uint count() const;
- <a href="qlayoutitem.html">TQLayoutItem</a> *current();
- <a href="qlayoutitem.html">TQLayoutItem</a> *next();
- <a href="qlayoutitem.html">TQLayoutItem</a> *takeCurrent();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *current();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *next();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *takeCurrent();
private:
int idx;
@@ -132,28 +132,28 @@ uint <a name="f452"></a>SimpleFlowIterator::count() const
<a name="x1479"></a> return list-&gt;<a href="tqptrlist.html#count">count</a>();
}
-<a name="x1464"></a>TQLayoutItem *SimpleFlowIterator::<a href="qglayoutiterator.html#current">current</a>()
+<a name="x1464"></a>TQLayoutItem *SimpleFlowIterator::<a href="tqglayoutiterator.html#current">current</a>()
{
<a name="x1478"></a> return idx &lt; int(count()) ? list-&gt;<a href="tqptrlist.html#at">at</a>(idx) : 0;
}
-<a name="x1465"></a>TQLayoutItem *SimpleFlowIterator::<a href="qglayoutiterator.html#next">next</a>()
+<a name="x1465"></a>TQLayoutItem *SimpleFlowIterator::<a href="tqglayoutiterator.html#next">next</a>()
{
idx++; return current();
}
-<a name="x1466"></a>TQLayoutItem *SimpleFlowIterator::<a href="qglayoutiterator.html#takeCurrent">takeCurrent</a>()
+<a name="x1466"></a>TQLayoutItem *SimpleFlowIterator::<a href="tqglayoutiterator.html#takeCurrent">takeCurrent</a>()
{
<a name="x1480"></a> return idx &lt; int(count()) ? list-&gt;<a href="tqptrlist.html#take">take</a>( idx ) : 0;
}
SimpleFlow::~SimpleFlow()
{
- <a href="ntqlayout.html#deleteAllItems">deleteAllItems</a>();
+ <a href="tqlayout.html#deleteAllItems">deleteAllItems</a>();
}
-<a name="x1473"></a>int SimpleFlow::<a href="qlayoutitem.html#heightForWidth">heightForWidth</a>( int w ) const
+<a name="x1473"></a>int SimpleFlow::<a href="tqlayoutitem.html#heightForWidth">heightForWidth</a>( int w ) const
{
if ( cached_width != w ) {
//Not all C++ compilers support "mutable" yet:
@@ -166,34 +166,34 @@ SimpleFlow::~SimpleFlow()
return cached_hfw;
}
-<a name="x1467"></a>void SimpleFlow::<a href="ntqlayout.html#addItem">addItem</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item)
+<a name="x1467"></a>void SimpleFlow::<a href="tqlayout.html#addItem">addItem</a>( <a href="tqlayoutitem.html">TQLayoutItem</a> *item)
{
<a name="x1477"></a> list.<a href="tqptrlist.html#append">append</a>( item );
}
-<a name="x1472"></a>bool SimpleFlow::<a href="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const
+<a name="x1472"></a>bool SimpleFlow::<a href="tqlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const
{
return TRUE;
}
-<a name="x1476"></a>TQSize SimpleFlow::<a href="qlayoutitem.html#sizeHint">sizeHint</a>() const
+<a name="x1476"></a>TQSize SimpleFlow::<a href="tqlayoutitem.html#sizeHint">sizeHint</a>() const
{
return minimumSize();
}
-<a name="x1468"></a>TQSizePolicy::ExpandData SimpleFlow::<a href="ntqlayout.html#expanding">expanding</a>() const
+<a name="x1468"></a>TQSizePolicy::ExpandData SimpleFlow::<a href="tqlayout.html#expanding">expanding</a>() const
{
return TQSizePolicy::NoDirection;
}
-<a name="x1469"></a>TQLayoutIterator SimpleFlow::<a href="ntqlayout.html#iterator">iterator</a>()
+<a name="x1469"></a>TQLayoutIterator SimpleFlow::<a href="tqlayout.html#iterator">iterator</a>()
{
return TQLayoutIterator( new SimpleFlowIterator( &amp;list ) );
}
-<a name="x1471"></a>void SimpleFlow::<a href="ntqlayout.html#setGeometry">setGeometry</a>( const <a href="tqrect.html">TQRect</a> &amp;r )
+<a name="x1471"></a>void SimpleFlow::<a href="tqlayout.html#setGeometry">setGeometry</a>( const <a href="tqrect.html">TQRect</a> &amp;r )
{
- TQLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( r );
+ TQLayout::<a href="tqlayout.html#setGeometry">setGeometry</a>( r );
doLayout( r );
}
@@ -203,32 +203,32 @@ int <a name="f451"></a>SimpleFlow::doLayout( const <a href="tqrect.html">TQRect<
int y = r.<a href="tqrect.html#y">y</a>();
int h = 0; //height of this line so far.
<a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
- <a href="qlayoutitem.html">TQLayoutItem</a> *o;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *o;
<a name="x1481"></a> while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
- int nextX = x + o-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width() + spacing();
+ int nextX = x + o-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().width() + spacing();
<a name="x1482"></a> if ( nextX - spacing() &gt; r.<a href="tqrect.html#right">right</a>() &amp;&amp; h &gt; 0 ) {
x = r.<a href="tqrect.html#x">x</a>();
y = y + h + spacing();
- nextX = x + o-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width() + spacing();
+ nextX = x + o-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().width() + spacing();
h = 0;
}
if ( !testonly )
-<a name="x1475"></a> o-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( TQPoint( x, y ), o-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>() ) );
+<a name="x1475"></a> o-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( TQPoint( x, y ), o-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>() ) );
x = nextX;
- h = TQMAX( h, o-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().height() );
+ h = TQMAX( h, o-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().height() );
}
return y + h - r.<a href="tqrect.html#y">y</a>();
}
-<a name="x1470"></a>TQSize SimpleFlow::<a href="ntqlayout.html#minimumSize">minimumSize</a>() const
+<a name="x1470"></a>TQSize SimpleFlow::<a href="tqlayout.html#minimumSize">minimumSize</a>() const
{
<a href="tqsize.html">TQSize</a> s(0,0);
<a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
- <a href="qlayoutitem.html">TQLayoutItem</a> *o;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *o;
while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
-<a name="x1485"></a><a name="x1474"></a> s = s.<a href="tqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
+<a name="x1485"></a><a name="x1474"></a> s = s.<a href="tqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>() );
}
return s;
}
@@ -253,7 +253,7 @@ int <a name="f451"></a>SimpleFlow::doLayout( const <a href="tqrect.html">TQRect<
#ifndef BORDER_H
#define BORDER_H
-#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="tqptrlist-h.html">tqptrlist.h</a>&gt;
class BorderWidgetItem : public <a href="tqwidgetitem.html">TQWidgetItem</a>
@@ -268,7 +268,7 @@ public:
};
-class BorderLayout : public <a href="ntqlayout.html">TQLayout</a>
+class BorderLayout : public <a href="tqlayout.html">TQLayout</a>
{
public:
enum Position {
@@ -281,12 +281,12 @@ public:
struct BorderLayoutStruct
{
- BorderLayoutStruct( <a href="qlayoutitem.html">TQLayoutItem</a> *i, Position p ) {
+ BorderLayoutStruct( <a href="tqlayoutitem.html">TQLayoutItem</a> *i, Position p ) {
item = i;
pos = p;
}
- <a href="qlayoutitem.html">TQLayoutItem</a> *item;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *item;
Position pos;
};
@@ -297,33 +297,33 @@ public:
BorderLayout( <a href="tqwidget.html">TQWidget</a> *parent, int border = 0, int autoBorder = -1,
const char *name = 0 )
- : <a href="ntqlayout.html">TQLayout</a>( parent, border, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ),
+ : <a href="tqlayout.html">TQLayout</a>( parent, border, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ),
sizeDirty( TRUE ), msizeDirty( TRUE )
{}
- BorderLayout( <a href="ntqlayout.html">TQLayout</a>* parent, int autoBorder = -1, const char *name = 0 )
- : <a href="ntqlayout.html">TQLayout</a>( parent, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ),
+ BorderLayout( <a href="tqlayout.html">TQLayout</a>* parent, int autoBorder = -1, const char *name = 0 )
+ : <a href="tqlayout.html">TQLayout</a>( parent, autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ),
sizeDirty( TRUE ), msizeDirty( TRUE )
{}
BorderLayout( int autoBorder = -1, const char *name = 0 )
- : <a href="ntqlayout.html">TQLayout</a>( autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ),
+ : <a href="tqlayout.html">TQLayout</a>( autoBorder, name ), cached( 0, 0 ), mcached( 0, 0 ),
sizeDirty( TRUE ), msizeDirty( TRUE )
{}
~BorderLayout();
- void addItem( <a href="qlayoutitem.html">TQLayoutItem</a> *item );
+ void addItem( <a href="tqlayoutitem.html">TQLayoutItem</a> *item );
void addWidget( <a href="tqwidget.html">TQWidget</a> *widget, Position pos );
- void add( <a href="qlayoutitem.html">TQLayoutItem</a> *item, Position pos );
+ void add( <a href="tqlayoutitem.html">TQLayoutItem</a> *item, Position pos );
bool hasHeightForWidth() const;
<a href="tqsize.html">TQSize</a> sizeHint() const;
<a href="tqsize.html">TQSize</a> minimumSize() const;
- <a href="qlayoutiterator.html">TQLayoutIterator</a> iterator();
+ <a href="tqlayoutiterator.html">TQLayoutIterator</a> iterator();
TQSizePolicy::ExpandData expanding() const;
@@ -359,7 +359,7 @@ private:
#include "border.h"
-class BorderLayoutIterator : public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
+class BorderLayoutIterator : public <a href="tqglayoutiterator.html">TQGLayoutIterator</a>
{
public:
BorderLayoutIterator( const <a href="tqptrlist.html">TQPtrList</a>&lt;BorderLayout::BorderLayoutStruct&gt; *l )
@@ -367,11 +367,11 @@ public:
{}
uint count() const;
- <a href="qlayoutitem.html">TQLayoutItem</a> *current();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *current();
BorderLayout::BorderLayoutStruct *currentStruct();
void toFirst();
- <a href="qlayoutitem.html">TQLayoutItem</a> *next();
- <a href="qlayoutitem.html">TQLayoutItem</a> *takeCurrent();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *next();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *takeCurrent();
BorderLayoutIterator &amp;operator++();
private:
@@ -385,7 +385,7 @@ uint <a name="f456"></a>BorderLayoutIterator::count() const
<a name="x1502"></a> return list-&gt;<a href="tqptrlist.html#count">count</a>();
}
-<a name="x1486"></a>TQLayoutItem *BorderLayoutIterator::<a href="qglayoutiterator.html#current">current</a>()
+<a name="x1486"></a>TQLayoutItem *BorderLayoutIterator::<a href="tqglayoutiterator.html#current">current</a>()
{
<a name="x1501"></a> return idx &lt; (int)count() ? list-&gt;<a href="tqptrlist.html#at">at</a>( idx )-&gt;item : 0;
}
@@ -400,17 +400,17 @@ void <a name="f458"></a>BorderLayoutIterator::toFirst()
idx = 0;
}
-<a name="x1487"></a>TQLayoutItem *BorderLayoutIterator::<a href="qglayoutiterator.html#next">next</a>()
+<a name="x1487"></a>TQLayoutItem *BorderLayoutIterator::<a href="tqglayoutiterator.html#next">next</a>()
{
idx++;
return current();
}
-<a name="x1488"></a>TQLayoutItem *BorderLayoutIterator::<a href="qglayoutiterator.html#takeCurrent">takeCurrent</a>()
+<a name="x1488"></a>TQLayoutItem *BorderLayoutIterator::<a href="tqglayoutiterator.html#takeCurrent">takeCurrent</a>()
{
BorderLayout::BorderLayoutStruct *b
<a name="x1503"></a> = idx &lt; int( list-&gt;<a href="tqptrlist.html#count">count</a>() ) ? list-&gt;<a href="tqptrlist.html#take">take</a>( idx ) : 0;
- <a href="qlayoutitem.html">TQLayoutItem</a> *item = b ? b-&gt;item : 0;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *item = b ? b-&gt;item : 0;
delete b;
return item;
}
@@ -423,56 +423,56 @@ BorderLayoutIterator &amp;BorderLayoutIterator::operator++()
BorderLayout::~BorderLayout()
{
- <a href="ntqlayout.html#deleteAllItems">deleteAllItems</a>();
+ <a href="tqlayout.html#deleteAllItems">deleteAllItems</a>();
}
-<a name="x1490"></a>void BorderLayout::<a href="ntqlayout.html#addItem">addItem</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item )
+<a name="x1490"></a>void BorderLayout::<a href="tqlayout.html#addItem">addItem</a>( <a href="tqlayoutitem.html">TQLayoutItem</a> *item )
{
- <a href="ntqlayout.html#add">add</a>( item, West );
+ <a href="tqlayout.html#add">add</a>( item, West );
}
void <a name="f453"></a>BorderLayout::addWidget( <a href="tqwidget.html">TQWidget</a> *widget, Position pos )
{
- <a href="ntqlayout.html#add">add</a>( new BorderWidgetItem( widget ), pos );
+ <a href="tqlayout.html#add">add</a>( new BorderWidgetItem( widget ), pos );
}
-<a name="x1489"></a>void BorderLayout::<a href="ntqlayout.html#add">add</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item, Position pos )
+<a name="x1489"></a>void BorderLayout::<a href="tqlayout.html#add">add</a>( <a href="tqlayoutitem.html">TQLayoutItem</a> *item, Position pos )
{
<a name="x1500"></a> list.<a href="tqptrlist.html#append">append</a>( new BorderLayoutStruct( item, pos ) );
sizeDirty = TRUE; msizeDirty = TRUE;
calcSize( SizeHint ); calcSize( Minimum );
}
-<a name="x1496"></a>bool BorderLayout::<a href="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const
+<a name="x1496"></a>bool BorderLayout::<a href="tqlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() const
{
return FALSE;
}
-<a name="x1499"></a>TQSize BorderLayout::<a href="qlayoutitem.html#sizeHint">sizeHint</a>() const
+<a name="x1499"></a>TQSize BorderLayout::<a href="tqlayoutitem.html#sizeHint">sizeHint</a>() const
{
return cached;
}
-<a name="x1493"></a>TQSize BorderLayout::<a href="ntqlayout.html#minimumSize">minimumSize</a>() const
+<a name="x1493"></a>TQSize BorderLayout::<a href="tqlayout.html#minimumSize">minimumSize</a>() const
{
return cached;
}
-<a name="x1491"></a>TQSizePolicy::ExpandData BorderLayout::<a href="ntqlayout.html#expanding">expanding</a>() const
+<a name="x1491"></a>TQSizePolicy::ExpandData BorderLayout::<a href="tqlayout.html#expanding">expanding</a>() const
{
return TQSizePolicy::BothDirections;
}
-<a name="x1492"></a>TQLayoutIterator BorderLayout::<a href="ntqlayout.html#iterator">iterator</a>()
+<a name="x1492"></a>TQLayoutIterator BorderLayout::<a href="tqlayout.html#iterator">iterator</a>()
{
return TQLayoutIterator( new BorderLayoutIterator( &amp;list ) );
}
-<a name="x1494"></a>void BorderLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( const <a href="tqrect.html">TQRect</a> &amp;rct )
+<a name="x1494"></a>void BorderLayout::<a href="tqlayout.html#setGeometry">setGeometry</a>( const <a href="tqrect.html">TQRect</a> &amp;rct )
{
- TQLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( rct );
+ TQLayout::<a href="tqlayout.html#setGeometry">setGeometry</a>( rct );
doLayout( rct );
}
@@ -488,15 +488,15 @@ void <a name="f454"></a>BorderLayout::doLayout( const <a href="tqrect.html">TQRe
++it;
if ( o-&gt;pos == North ) {
-<a name="x1506"></a><a name="x1505"></a><a name="x1498"></a> o-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>(), nh, rct.<a href="tqrect.html#width">width</a>(), o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().height() ) );
-<a name="x1495"></a> nh += o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().height() + spacing();
+<a name="x1506"></a><a name="x1505"></a><a name="x1498"></a> o-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>(), nh, rct.<a href="tqrect.html#width">width</a>(), o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().height() ) );
+<a name="x1495"></a> nh += o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().height() + spacing();
}
if ( o-&gt;pos == South ) {
- o-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().x(), o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().y(),
- rct.<a href="tqrect.html#width">width</a>(), o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().height() ) );
- sh += o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().height() + spacing();
- o-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>(), rct.<a href="tqrect.html#y">y</a>() + rct.<a href="tqrect.html#height">height</a>() - sh + spacing(),
- o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().width(), o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().height() ) );
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().x(), o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().y(),
+ rct.<a href="tqrect.html#width">width</a>(), o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().height() ) );
+ sh += o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().height() + spacing();
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>(), rct.<a href="tqrect.html#y">y</a>() + rct.<a href="tqrect.html#height">height</a>() - sh + spacing(),
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().width(), o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().height() ) );
}
if ( o-&gt;pos == Center )
center = o;
@@ -509,20 +509,20 @@ void <a name="f454"></a>BorderLayout::doLayout( const <a href="tqrect.html">TQRe
++it;
if ( o-&gt;pos == West ) {
- o-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>() + ww, nh, o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width(), h ) );
- ww += o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().width() + spacing();
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>() + ww, nh, o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().width(), h ) );
+ ww += o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().width() + spacing();
}
if ( o-&gt;pos == East ) {
- o-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().x(), o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().y(),
- o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width(), h ) );
- ew += o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().width() + spacing();
- o-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>() + rct.<a href="tqrect.html#width">width</a>() - ew + spacing(), nh,
- o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().width(), o-&gt;item-&gt;<a href="qlayoutitem.html#geometry">geometry</a>().height() ) );
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().x(), o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().y(),
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().width(), h ) );
+ ew += o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().width() + spacing();
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( rct.<a href="tqrect.html#x">x</a>() + rct.<a href="tqrect.html#width">width</a>() - ew + spacing(), nh,
+ o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().width(), o-&gt;item-&gt;<a href="tqlayoutitem.html#geometry">geometry</a>().height() ) );
}
}
if ( center )
- center-&gt;item-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( TQRect( ww, nh, rct.<a href="tqrect.html#width">width</a>() - ew - ww, h ) );
+ center-&gt;item-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( TQRect( ww, nh, rct.<a href="tqrect.html#width">width</a>() - ew - ww, h ) );
}
void <a name="f455"></a>BorderLayout::calcSize( SizeType st )
@@ -540,24 +540,24 @@ void <a name="f455"></a>BorderLayout::calcSize( SizeType st )
if ( o-&gt;pos == North ||
o-&gt;pos == South ) {
if ( st == Minimum )
-<a name="x1497"></a> h += o-&gt;item-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>().height();
+<a name="x1497"></a> h += o-&gt;item-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>().height();
else
- h += o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().height();
+ h += o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().height();
}
else if ( o-&gt;pos == West ||
o-&gt;pos == East ) {
if ( st == Minimum )
- w += o-&gt;item-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>().width();
+ w += o-&gt;item-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>().width();
else
- w += o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width();
+ w += o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().width();
} else {
if ( st == Minimum ) {
- h += o-&gt;item-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>().height();
- w += o-&gt;item-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>().width();
+ h += o-&gt;item-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>().height();
+ w += o-&gt;item-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>().width();
}
else {
- h += o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().height();
- w += o-&gt;item-&gt;<a href="qlayoutitem.html#sizeHint">sizeHint</a>().width();
+ h += o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().height();
+ w += o-&gt;item-&gt;<a href="tqlayoutitem.html#sizeHint">sizeHint</a>().width();
}
}
}
@@ -593,24 +593,24 @@ void <a name="f455"></a>BorderLayout::calcSize( SizeType st )
#ifndef CARD_H
#define CARD_H
-#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="tqptrlist-h.html">tqptrlist.h</a>&gt;
-class CardLayout : public <a href="ntqlayout.html">TQLayout</a>
+class CardLayout : public <a href="tqlayout.html">TQLayout</a>
{
public:
CardLayout( <a href="tqwidget.html">TQWidget</a> *parent, int dist )
- : <a href="ntqlayout.html">TQLayout</a>( parent, 0, dist ) {}
- CardLayout( <a href="ntqlayout.html">TQLayout</a>* parent, int dist)
- : <a href="ntqlayout.html">TQLayout</a>( parent, dist ) {}
+ : <a href="tqlayout.html">TQLayout</a>( parent, 0, dist ) {}
+ CardLayout( <a href="tqlayout.html">TQLayout</a>* parent, int dist)
+ : <a href="tqlayout.html">TQLayout</a>( parent, dist ) {}
CardLayout( int dist )
- : <a href="ntqlayout.html">TQLayout</a>( dist ) {}
+ : <a href="tqlayout.html">TQLayout</a>( dist ) {}
~CardLayout();
- void addItem( <a href="qlayoutitem.html">TQLayoutItem</a> *item );
+ void addItem( <a href="tqlayoutitem.html">TQLayoutItem</a> *item );
<a href="tqsize.html">TQSize</a> sizeHint() const;
<a href="tqsize.html">TQSize</a> minimumSize() const;
- <a href="qlayoutiterator.html">TQLayoutIterator</a> iterator();
+ <a href="tqlayoutiterator.html">TQLayoutIterator</a> iterator();
void setGeometry( const <a href="tqrect.html">TQRect</a> &amp;rect );
private:
@@ -637,62 +637,62 @@ private:
#include "card.h"
-class CardLayoutIterator :public <a href="qglayoutiterator.html">TQGLayoutIterator</a>
+class CardLayoutIterator :public <a href="tqglayoutiterator.html">TQGLayoutIterator</a>
{
public:
CardLayoutIterator( <a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *l )
: idx( 0 ), list( l ) {}
- <a href="qlayoutitem.html">TQLayoutItem</a> *current();
- <a href="qlayoutitem.html">TQLayoutItem</a> *next();
- <a href="qlayoutitem.html">TQLayoutItem</a> *takeCurrent();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *current();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *next();
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *takeCurrent();
private:
int idx;
<a href="tqptrlist.html">TQPtrList</a>&lt;TQLayoutItem&gt; *list;
};
-<a name="x1508"></a>TQLayoutItem *CardLayoutIterator::<a href="qglayoutiterator.html#current">current</a>()
+<a name="x1508"></a>TQLayoutItem *CardLayoutIterator::<a href="tqglayoutiterator.html#current">current</a>()
{
<a name="x1520"></a><a name="x1519"></a> return idx &lt; int( list-&gt;<a href="tqptrlist.html#count">count</a>() ) ? list-&gt;<a href="tqptrlist.html#at">at</a>( idx ) : 0;
}
-<a name="x1509"></a>TQLayoutItem *CardLayoutIterator::<a href="qglayoutiterator.html#next">next</a>()
+<a name="x1509"></a>TQLayoutItem *CardLayoutIterator::<a href="tqglayoutiterator.html#next">next</a>()
{
idx++; return current();
}
-<a name="x1510"></a>TQLayoutItem *CardLayoutIterator::<a href="qglayoutiterator.html#takeCurrent">takeCurrent</a>()
+<a name="x1510"></a>TQLayoutItem *CardLayoutIterator::<a href="tqglayoutiterator.html#takeCurrent">takeCurrent</a>()
{
<a name="x1521"></a> return idx &lt; int( list-&gt;<a href="tqptrlist.html#count">count</a>() ) ?list-&gt;<a href="tqptrlist.html#take">take</a>( idx ) : 0;
}
-<a name="x1512"></a>TQLayoutIterator CardLayout::<a href="ntqlayout.html#iterator">iterator</a>()
+<a name="x1512"></a>TQLayoutIterator CardLayout::<a href="tqlayout.html#iterator">iterator</a>()
{
return TQLayoutIterator( new CardLayoutIterator( &amp;list ) );
}
CardLayout::~CardLayout()
{
- <a href="ntqlayout.html#deleteAllItems">deleteAllItems</a>();
+ <a href="tqlayout.html#deleteAllItems">deleteAllItems</a>();
}
-<a name="x1511"></a>void CardLayout::<a href="ntqlayout.html#addItem">addItem</a>( <a href="qlayoutitem.html">TQLayoutItem</a> *item )
+<a name="x1511"></a>void CardLayout::<a href="tqlayout.html#addItem">addItem</a>( <a href="tqlayoutitem.html">TQLayoutItem</a> *item )
{
<a name="x1518"></a> list.<a href="tqptrlist.html#append">append</a>( item );
}
-<a name="x1514"></a>void CardLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( const <a href="tqrect.html">TQRect</a> &amp;rct )
+<a name="x1514"></a>void CardLayout::<a href="tqlayout.html#setGeometry">setGeometry</a>( const <a href="tqrect.html">TQRect</a> &amp;rct )
{
- TQLayout::<a href="ntqlayout.html#setGeometry">setGeometry</a>( rct );
+ TQLayout::<a href="tqlayout.html#setGeometry">setGeometry</a>( rct );
<a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it( list );
<a name="x1522"></a> if ( it.<a href="tqptrlistiterator.html#count">count</a>() == 0 )
return;
- <a href="qlayoutitem.html">TQLayoutItem</a> *o;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *o;
int i = 0;
@@ -703,37 +703,37 @@ CardLayout::~CardLayout()
++it;
<a href="tqrect.html">TQRect</a> geom( rct.<a href="tqrect.html#x">x</a>() + i * spacing(), rct.<a href="tqrect.html#y">y</a>() + i * spacing(),
w, h );
-<a name="x1516"></a> o-&gt;<a href="qlayoutitem.html#setGeometry">setGeometry</a>( geom );
+<a name="x1516"></a> o-&gt;<a href="tqlayoutitem.html#setGeometry">setGeometry</a>( geom );
++i;
}
}
-<a name="x1517"></a>TQSize CardLayout::<a href="qlayoutitem.html#sizeHint">sizeHint</a>() const
+<a name="x1517"></a>TQSize CardLayout::<a href="tqlayoutitem.html#sizeHint">sizeHint</a>() const
{
<a href="tqsize.html">TQSize</a> s(0,0);
int n = list.<a href="tqptrlist.html#count">count</a>();
if ( n &gt; 0 )
s = TQSize(100,70); //start with a nice default size
<a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
- <a href="qlayoutitem.html">TQLayoutItem</a> *o;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *o;
while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
-<a name="x1528"></a><a name="x1515"></a> s = s.<a href="tqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
+<a name="x1528"></a><a name="x1515"></a> s = s.<a href="tqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>() );
}
- return s + n*TQSize(<a href="ntqlayout.html#spacing">spacing</a>(),spacing());
+ return s + n*TQSize(<a href="tqlayout.html#spacing">spacing</a>(),spacing());
}
-<a name="x1513"></a>TQSize CardLayout::<a href="ntqlayout.html#minimumSize">minimumSize</a>() const
+<a name="x1513"></a>TQSize CardLayout::<a href="tqlayout.html#minimumSize">minimumSize</a>() const
{
<a href="tqsize.html">TQSize</a> s(0,0);
int n = list.<a href="tqptrlist.html#count">count</a>();
<a href="tqptrlistiterator.html">TQPtrListIterator</a>&lt;TQLayoutItem&gt; it(list);
- <a href="qlayoutitem.html">TQLayoutItem</a> *o;
+ <a href="tqlayoutitem.html">TQLayoutItem</a> *o;
while ( (o=it.<a href="tqptrlistiterator.html#current">current</a>()) != 0 ) {
++it;
- s = s.<a href="tqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="qlayoutitem.html#minimumSize">minimumSize</a>() );
+ s = s.<a href="tqsize.html#expandedTo">expandedTo</a>( o-&gt;<a href="tqlayoutitem.html#minimumSize">minimumSize</a>() );
}
- return s + n*TQSize(<a href="ntqlayout.html#spacing">spacing</a>(),spacing());
+ return s + n*TQSize(<a href="tqlayout.html#spacing">spacing</a>(),spacing());
}
</pre>
@@ -758,7 +758,7 @@ CardLayout::~CardLayout()
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#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="qgroupbox-h.html">ntqgroupbox.h</a>&gt;
+#include &lt;<a href="tqgroupbox-h.html">tqgroupbox.h</a>&gt;
#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
#include &lt;<a href="tqmultilineedit-h.html">tqmultilineedit.h</a>&gt;
#include &lt;<a href="tqcolor-h.html">tqcolor.h</a>&gt;
@@ -768,23 +768,23 @@ int main( int argc, char **argv )
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqwidget.html">TQWidget</a> *f = new <a href="tqwidget.html">TQWidget</a>;
- <a href="qboxlayout.html">TQBoxLayout</a> *gm = new <a href="qvboxlayout.html">TQVBoxLayout</a>( f, 5 );
+ <a href="tqboxlayout.html">TQBoxLayout</a> *gm = new <a href="tqvboxlayout.html">TQVBoxLayout</a>( f, 5 );
SimpleFlow *b1 = new SimpleFlow( gm );
-<a name="x1536"></a> b1-&gt;<a href="ntqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Short", f ) );
- b1-&gt;<a href="ntqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Longer", f ) );
- b1-&gt;<a href="ntqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Different text", f ) );
- b1-&gt;<a href="ntqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "More text", f ) );
- b1-&gt;<a href="ntqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Even longer button text", f ) );
+<a name="x1536"></a> b1-&gt;<a href="tqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Short", f ) );
+ b1-&gt;<a href="tqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Longer", f ) );
+ b1-&gt;<a href="tqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Different text", f ) );
+ b1-&gt;<a href="tqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "More text", f ) );
+ b1-&gt;<a href="tqlayout.html#add">add</a>( new <a href="tqpushbutton.html">TQPushButton</a>( "Even longer button text", f ) );
<a href="tqpushbutton.html">TQPushButton</a>* qb = new <a href="tqpushbutton.html">TQPushButton</a>( "Quit", f );
a.<a href="tqobject.html#connect">connect</a>( qb, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), TQ_SLOT( quit() ) );
- b1-&gt;<a href="ntqlayout.html#add">add</a>( qb );
+ b1-&gt;<a href="tqlayout.html#add">add</a>( qb );
<a href="tqwidget.html">TQWidget</a> *wid = new <a href="tqwidget.html">TQWidget</a>( f );
BorderLayout *large = new BorderLayout( wid );
-<a name="x1537"></a> large-&gt;<a href="ntqlayout.html#setSpacing">setSpacing</a>( 5 );
+<a name="x1537"></a> large-&gt;<a href="tqlayout.html#setSpacing">setSpacing</a>( 5 );
large-&gt;addWidget( new <a href="tqpushbutton.html">TQPushButton</a>( "North", wid ), BorderLayout::North );
large-&gt;addWidget( new <a href="tqpushbutton.html">TQPushButton</a>( "West", wid ), BorderLayout::West );
<a href="tqmultilineedit.html">TQMultiLineEdit</a>* m = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( wid );
@@ -797,7 +797,7 @@ int main( int argc, char **argv )
large-&gt;addWidget( new <a href="tqpushbutton.html">TQPushButton</a>( "South", wid ), BorderLayout::South );
//Left-to-right tab order looks better:
<a name="x1542"></a> <a href="tqwidget.html">TQWidget</a>::<a href="tqwidget.html#setTabOrder">setTabOrder</a>( east2, east1 );
- gm-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( wid );
+ gm-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( wid );
wid = new <a href="tqwidget.html">TQWidget</a>( f );
@@ -805,30 +805,30 @@ int main( int argc, char **argv )
<a href="tqwidget.html">TQWidget</a> *crd = new <a href="tqwidget.html">TQWidget</a>( wid );
<a name="x1540"></a> crd-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red );
- card-&gt;<a href="ntqlayout.html#add">add</a>( crd );
+ card-&gt;<a href="tqlayout.html#add">add</a>( crd );
crd = new <a href="tqwidget.html">TQWidget</a>( wid );
crd-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green );
- card-&gt;<a href="ntqlayout.html#add">add</a>( crd );
+ card-&gt;<a href="tqlayout.html#add">add</a>( crd );
crd = new <a href="tqwidget.html">TQWidget</a>( wid );
crd-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue );
- card-&gt;<a href="ntqlayout.html#add">add</a>( crd );
+ card-&gt;<a href="tqlayout.html#add">add</a>( crd );
crd = new <a href="tqwidget.html">TQWidget</a>( wid );
crd-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white );
- card-&gt;<a href="ntqlayout.html#add">add</a>( crd );
+ card-&gt;<a href="tqlayout.html#add">add</a>( crd );
crd = new <a href="tqwidget.html">TQWidget</a>( wid );
crd-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::black );
- card-&gt;<a href="ntqlayout.html#add">add</a>( crd );
+ card-&gt;<a href="tqlayout.html#add">add</a>( crd );
crd = new <a href="tqwidget.html">TQWidget</a>( wid );
crd-&gt;<a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow );
- card-&gt;<a href="ntqlayout.html#add">add</a>( crd );
+ card-&gt;<a href="tqlayout.html#add">add</a>( crd );
- gm-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( wid );
+ gm-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( wid );
<a href="tqlabel.html">TQLabel</a>* s = new <a href="tqlabel.html">TQLabel</a>( f );
s-&gt;<a href="tqlabel.html#setText">setText</a>( "outermost box" );
s-&gt;<a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
s-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter | TQt::AlignHCenter );
- gm-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( s );
+ gm-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( s );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( f );
f-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Custom Layout");
f-&gt;<a href="tqwidget.html#show">show</a>();