summaryrefslogtreecommitdiffstats
path: root/doc/html/tictac-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:07:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:22:42 +0900
commit8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch)
treeb95884617b9a37accc843676d5d42be4116a3f54 /doc/html/tictac-example.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt3-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/tictac-example.html')
-rw-r--r--doc/html/tictac-example.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html
index 9aa4a8448..2fd58a3c9 100644
--- a/doc/html/tictac-example.html
+++ b/doc/html/tictac-example.html
@@ -69,7 +69,7 @@ class TicTacButton : public <a href="ntqpushbutton.html">TQPushButton</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
- TicTacButton( <a href="ntqwidget.html">TQWidget</a> *parent );
+ TicTacButton( <a href="tqwidget.html">TQWidget</a> *parent );
enum Type { Blank, Circle, Cross };
Type type() const { return t; }
void setType( Type type ) { t = type; repaint(); }
@@ -96,7 +96,7 @@ typedef TQMemArray&lt;int&gt; TicTacArray;
// N is specified in the constructor.
//
-class TicTacGameBoard : public <a href="ntqwidget.html">TQWidget</a>
+class TicTacGameBoard : public <a href="tqwidget.html">TQWidget</a>
{
TQ_OBJECT
public:
@@ -129,7 +129,7 @@ private:
// two push buttons for starting the game and quitting.
//
-class TicTacToe : public <a href="ntqwidget.html">TQWidget</a>
+class TicTacToe : public <a href="tqwidget.html">TQWidget</a>
{
TQ_OBJECT
public:
@@ -182,7 +182,7 @@ private:
// Creates a TicTacButton
//
-<a name="f188"></a>TicTacButton::TicTacButton( <a href="ntqwidget.html">TQWidget</a> *parent ) : <a href="ntqpushbutton.html">TQPushButton</a>( parent )
+<a name="f188"></a>TicTacButton::TicTacButton( <a href="tqwidget.html">TQWidget</a> *parent ) : <a href="ntqpushbutton.html">TQPushButton</a>( parent )
{
t = Blank; // initial type
}
@@ -193,7 +193,7 @@ private:
<a name="x31"></a>void TicTacButton::<a href="ntqbutton.html#drawButtonLabel">drawButtonLabel</a>( <a href="ntqpainter.html">TQPainter</a> *p )
{
- <a href="ntqrect.html">TQRect</a> r = <a href="ntqwidget.html#rect">rect</a>();
+ <a href="ntqrect.html">TQRect</a> r = <a href="tqwidget.html#rect">rect</a>();
p-&gt;<a href="ntqpainter.html#setPen">setPen</a>( TQPen( white,2 ) ); // set fat pen
if ( t == Circle ) {
<a name="x36"></a><a name="x35"></a><a name="x28"></a> p-&gt;<a href="ntqpainter.html#drawEllipse">drawEllipse</a>( r.<a href="ntqrect.html#left">left</a>()+4, r.<a href="ntqrect.html#top">top</a>()+4, r.<a href="ntqrect.html#width">width</a>()-8, r.<a href="ntqrect.html#height">height</a>()-8 );
@@ -214,7 +214,7 @@ private:
//
<a name="f189"></a>TicTacGameBoard::TicTacGameBoard( int n, TQWidget *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name )
{
st = Init; // initial state
nBoard = n;
@@ -226,8 +226,8 @@ private:
<a href="ntqpalette.html">TQPalette</a> p( blue );
for ( int i=0; i&lt;n; i++ ) { // create and connect buttons
TicTacButton *ttb = new TicTacButton( this );
-<a name="x45"></a> ttb-&gt;<a href="ntqwidget.html#setPalette">setPalette</a>( p );
- ttb-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
+<a name="x45"></a> ttb-&gt;<a href="tqwidget.html#setPalette">setPalette</a>( p );
+ ttb-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
<a href="tqobject.html#connect">connect</a>( ttb, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), TQ_SLOT(buttonClicked()) );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( ttb, i%nBoard, i/nBoard );
buttons-&gt;insert( i, ttb );
@@ -441,7 +441,7 @@ void <a name="f195"></a>TicTacGameBoard::computerMove()
//
<a name="f196"></a>TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name )
{
<a href="qvboxlayout.html">TQVBoxLayout</a> * l = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 6 );
@@ -559,8 +559,8 @@ int main( int argc, char **argv )
}
TicTacToe ttt( n ); // create game
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;ttt );
- ttt.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - TicTac");
- ttt.<a href="ntqwidget.html#show">show</a>(); // show widget
+ ttt.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - TicTac");
+ ttt.<a href="tqwidget.html#show">show</a>(); // show widget
return a.<a href="ntqapplication.html#exec">exec</a>(); // go
}
</pre>