summaryrefslogtreecommitdiffstats
path: root/doc/html/customlayout-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/customlayout-example.html')
-rw-r--r--doc/html/customlayout-example.html56
1 files changed, 28 insertions, 28 deletions
diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html
index 2223b2237..e095c9ca8 100644
--- a/doc/html/customlayout-example.html
+++ b/doc/html/customlayout-example.html
@@ -61,7 +61,7 @@ like card layouts, border layout and flow layouts.
class SimpleFlow : public <a href="ntqlayout.html">TQLayout</a>
{
public:
- SimpleFlow( <a href="ntqwidget.html">TQWidget</a> *parent, int border=0, int space=-1,
+ 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 ),
cached_width(0) {}
@@ -256,11 +256,11 @@ int <a name="f451"></a>SimpleFlow::doLayout( const <a href="ntqrect.html">TQRect
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="qptrlist-h.html">ntqptrlist.h</a>&gt;
-class BorderWidgetItem : public <a href="qwidgetitem.html">TQWidgetItem</a>
+class BorderWidgetItem : public <a href="tqwidgetitem.html">TQWidgetItem</a>
{
public:
- BorderWidgetItem( <a href="ntqwidget.html">TQWidget</a> *w )
- : <a href="qwidgetitem.html">TQWidgetItem</a>( w )
+ BorderWidgetItem( <a href="tqwidget.html">TQWidget</a> *w )
+ : <a href="tqwidgetitem.html">TQWidgetItem</a>( w )
{}
void setGeometry( const <a href="ntqrect.html">TQRect</a> &amp;r )
@@ -295,7 +295,7 @@ public:
SizeHint
};
- BorderLayout( <a href="ntqwidget.html">TQWidget</a> *parent, int border = 0, int autoBorder = -1,
+ 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 ),
sizeDirty( TRUE ), msizeDirty( TRUE )
@@ -315,7 +315,7 @@ public:
void addItem( <a href="qlayoutitem.html">TQLayoutItem</a> *item );
- void addWidget( <a href="ntqwidget.html">TQWidget</a> *widget, Position pos );
+ void addWidget( <a href="tqwidget.html">TQWidget</a> *widget, Position pos );
void add( <a href="qlayoutitem.html">TQLayoutItem</a> *item, Position pos );
bool hasHeightForWidth() const;
@@ -432,7 +432,7 @@ BorderLayout::~BorderLayout()
<a href="ntqlayout.html#add">add</a>( item, West );
}
-void <a name="f453"></a>BorderLayout::addWidget( <a href="ntqwidget.html">TQWidget</a> *widget, Position pos )
+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 );
}
@@ -599,7 +599,7 @@ void <a name="f455"></a>BorderLayout::calcSize( SizeType st )
class CardLayout : public <a href="ntqlayout.html">TQLayout</a>
{
public:
- CardLayout( <a href="ntqwidget.html">TQWidget</a> *parent, int dist )
+ 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 ) {}
@@ -767,7 +767,7 @@ int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
- <a href="ntqwidget.html">TQWidget</a> *f = new <a href="ntqwidget.html">TQWidget</a>;
+ <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 );
SimpleFlow *b1 = new SimpleFlow( gm );
@@ -781,7 +781,7 @@ int main( int argc, char **argv )
a.<a href="tqobject.html#connect">connect</a>( qb, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), TQ_SLOT( quit() ) );
b1-&gt;<a href="ntqlayout.html#add">add</a>( qb );
- <a href="ntqwidget.html">TQWidget</a> *wid = new <a href="ntqwidget.html">TQWidget</a>( f );
+ <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 );
@@ -790,36 +790,36 @@ int main( int argc, char **argv )
<a href="ntqmultilineedit.html">TQMultiLineEdit</a>* m = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( wid );
m-&gt;<a href="ntqtextedit.html#setText">setText</a>( "Central\nWidget" );
large-&gt;addWidget( m, BorderLayout::Center );
- <a href="ntqwidget.html">TQWidget</a> *east1 = new <a href="ntqpushbutton.html">TQPushButton</a>( "East", wid );
+ <a href="tqwidget.html">TQWidget</a> *east1 = new <a href="ntqpushbutton.html">TQPushButton</a>( "East", wid );
large-&gt;addWidget( east1, BorderLayout::East );
- <a href="ntqwidget.html">TQWidget</a> *east2 = new <a href="ntqpushbutton.html">TQPushButton</a>( "East 2", wid );
+ <a href="tqwidget.html">TQWidget</a> *east2 = new <a href="ntqpushbutton.html">TQPushButton</a>( "East 2", wid );
large-&gt;addWidget( east2 , BorderLayout::East );
large-&gt;addWidget( new <a href="ntqpushbutton.html">TQPushButton</a>( "South", wid ), BorderLayout::South );
//Left-to-right tab order looks better:
-<a name="x1542"></a> <a href="ntqwidget.html">TQWidget</a>::<a href="ntqwidget.html#setTabOrder">setTabOrder</a>( east2, east1 );
+<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 );
- wid = new <a href="ntqwidget.html">TQWidget</a>( f );
+ wid = new <a href="tqwidget.html">TQWidget</a>( f );
CardLayout *card = new CardLayout( wid, 10 );
- <a href="ntqwidget.html">TQWidget</a> *crd = new <a href="ntqwidget.html">TQWidget</a>( wid );
-<a name="x1540"></a> crd-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red );
+ <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 );
- crd = new <a href="ntqwidget.html">TQWidget</a>( wid );
- crd-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green );
+ 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 );
- crd = new <a href="ntqwidget.html">TQWidget</a>( wid );
- crd-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue );
+ 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 );
- crd = new <a href="ntqwidget.html">TQWidget</a>( wid );
- crd-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white );
+ 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 );
- crd = new <a href="ntqwidget.html">TQWidget</a>( wid );
- crd-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::black );
+ 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 );
- crd = new <a href="ntqwidget.html">TQWidget</a>( wid );
- crd-&gt;<a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow );
+ 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 );
gm-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( wid );
@@ -830,8 +830,8 @@ int main( int argc, char **argv )
s-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter | TQt::AlignHCenter );
gm-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( s );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( f );
- f-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Custom Layout");
- f-&gt;<a href="ntqwidget.html#show">show</a>();
+ f-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Custom Layout");
+ f-&gt;<a href="tqwidget.html#show">show</a>();
int result = a.<a href="ntqapplication.html#exec">exec</a>();
delete f;