diff options
Diffstat (limited to 'doc/html/canvas-example.html')
-rw-r--r-- | doc/html/canvas-example.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 0c0726857..b33774f37 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -275,7 +275,7 @@ void NodeItem::<a href="tqcanvasitem.html#moveBy">moveBy</a>(double dx, double d EdgeItem *edge; <a name="x2949"></a> while (( edge = it1.<a href="qptrlistiterator.html#current">current</a>() )) { ++it1; - edge->setToPoint( int(<a href="ntqwidget.html#x">x</a>()), int(<a href="tqcanvasitem.html#y">y</a>()) ); + edge->setToPoint( int(<a href="tqwidget.html#x">x</a>()), int(<a href="tqcanvasitem.html#y">y</a>()) ); } <a href="qptrlistiterator.html">TQPtrListIterator</a><EdgeItem> it2( outList ); while (( edge = it2.<a href="qptrlistiterator.html#current">current</a>() )) { @@ -387,8 +387,8 @@ void <a name="f617"></a>BouncyLogo::initSpeed() vy = yVelocity(); } - double nx = <a href="ntqwidget.html#x">x</a>() + vx; - double ny = <a href="ntqwidget.html#y">y</a>() + vy; + double nx = <a href="tqwidget.html#x">x</a>() + vx; + double ny = <a href="tqwidget.html#y">y</a>() + vy; if ( nx < 0 || nx >= canvas()->width() ) vx = -vx; @@ -423,9 +423,9 @@ void <a name="f617"></a>BouncyLogo::initSpeed() } } - if ( <a href="ntqwidget.html#x">x</a>()+vx < 0 || x()+vx >= canvas()->width() ) + if ( <a href="tqwidget.html#x">x</a>()+vx < 0 || x()+vx >= canvas()->width() ) vx = 0; - if ( <a href="ntqwidget.html#y">y</a>()+vy < 0 || y()+vy >= canvas()->height() ) + if ( <a href="tqwidget.html#y">y</a>()+vy < 0 || y()+vy >= canvas()->height() ) vy = 0; setVelocity(vx,vy); @@ -545,7 +545,7 @@ void <a name="f627"></a>Main::newView() // Open a new view... have it delete when closed. Main *m = new Main(canvas, 0, 0, WDestructiveClose); tqApp-><a href="ntqapplication.html#setMainWidget">setMainWidget</a>(m); - m-><a href="ntqwidget.html#show">show</a>(); + m-><a href="tqwidget.html#show">show</a>(); tqApp-><a href="ntqapplication.html#setMainWidget">setMainWidget</a>(0); } @@ -914,13 +914,13 @@ int main(int argc, char** argv) <a href="tqcanvas.html">TQCanvas</a> canvas(800,600); <a name="x2962"></a> canvas.<a href="tqcanvas.html#setAdvancePeriod">setAdvancePeriod</a>(30); Main m(canvas); -<a name="x2969"></a> m.<a href="ntqwidget.html#resize">resize</a>(m.<a href="ntqwidget.html#sizeHint">sizeHint</a>()); - m.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Canvas"); -<a name="x2970"></a><a name="x2958"></a> if ( TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->width() > m.<a href="ntqwidget.html#width">width</a>() + 10 -<a name="x2964"></a> && TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->height() > m.<a href="ntqwidget.html#height">height</a>() +30 ) - m.<a href="ntqwidget.html#show">show</a>(); +<a name="x2969"></a> m.<a href="tqwidget.html#resize">resize</a>(m.<a href="tqwidget.html#sizeHint">sizeHint</a>()); + m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Canvas"); +<a name="x2970"></a><a name="x2958"></a> if ( TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->width() > m.<a href="tqwidget.html#width">width</a>() + 10 +<a name="x2964"></a> && TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->height() > m.<a href="tqwidget.html#height">height</a>() +30 ) + m.<a href="tqwidget.html#show">show</a>(); else -<a name="x2968"></a> m.<a href="ntqwidget.html#showMaximized">showMaximized</a>(); +<a name="x2968"></a> m.<a href="tqwidget.html#showMaximized">showMaximized</a>(); TQObject::<a href="tqobject.html#connect">connect</a>( tqApp, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); |