diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:07:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-02 23:22:42 +0900 |
commit | 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch) | |
tree | b95884617b9a37accc843676d5d42be4116a3f54 /doc/html/customlayout-example.html | |
parent | 68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff) | |
download | tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip |
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/customlayout-example.html')
-rw-r--r-- | doc/html/customlayout-example.html | 56 |
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 <<a href="qlayout-h.html">ntqlayout.h</a>> #include <<a href="qptrlist-h.html">ntqptrlist.h</a>> -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> &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-><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-><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-><a href="ntqtextedit.html#setText">setText</a>( "Central\nWidget" ); large->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->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->addWidget( east2 , BorderLayout::East ); large->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-><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-><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-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::red ); card-><a href="ntqlayout.html#add">add</a>( crd ); - crd = new <a href="ntqwidget.html">TQWidget</a>( wid ); - crd-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green ); + crd = new <a href="tqwidget.html">TQWidget</a>( wid ); + crd-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::green ); card-><a href="ntqlayout.html#add">add</a>( crd ); - crd = new <a href="ntqwidget.html">TQWidget</a>( wid ); - crd-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue ); + crd = new <a href="tqwidget.html">TQWidget</a>( wid ); + crd-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::blue ); card-><a href="ntqlayout.html#add">add</a>( crd ); - crd = new <a href="ntqwidget.html">TQWidget</a>( wid ); - crd-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); + crd = new <a href="tqwidget.html">TQWidget</a>( wid ); + crd-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); card-><a href="ntqlayout.html#add">add</a>( crd ); - crd = new <a href="ntqwidget.html">TQWidget</a>( wid ); - crd-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::black ); + crd = new <a href="tqwidget.html">TQWidget</a>( wid ); + crd-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::black ); card-><a href="ntqlayout.html#add">add</a>( crd ); - crd = new <a href="ntqwidget.html">TQWidget</a>( wid ); - crd-><a href="ntqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow ); + crd = new <a href="tqwidget.html">TQWidget</a>( wid ); + crd-><a href="tqwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::yellow ); card-><a href="ntqlayout.html#add">add</a>( crd ); gm-><a href="qboxlayout.html#addWidget">addWidget</a>( wid ); @@ -830,8 +830,8 @@ int main( int argc, char **argv ) s-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter | TQt::AlignHCenter ); gm-><a href="qboxlayout.html#addWidget">addWidget</a>( s ); a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( f ); - f-><a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Custom Layout"); - f-><a href="ntqwidget.html#show">show</a>(); + f-><a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Custom Layout"); + f-><a href="tqwidget.html#show">show</a>(); int result = a.<a href="ntqapplication.html#exec">exec</a>(); delete f; |