From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/canvas-example.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/canvas-example.html') 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::moveBy(double dx, double d EdgeItem *edge; while (( edge = it1.current() )) { ++it1; - edge->setToPoint( int(x()), int(y()) ); + edge->setToPoint( int(x()), int(y()) ); } TQPtrListIterator<EdgeItem> it2( outList ); while (( edge = it2.current() )) { @@ -387,8 +387,8 @@ void BouncyLogo::initSpeed() vy = yVelocity(); } - double nx = x() + vx; - double ny = y() + vy; + double nx = x() + vx; + double ny = y() + vy; if ( nx < 0 || nx >= canvas()->width() ) vx = -vx; @@ -423,9 +423,9 @@ void BouncyLogo::initSpeed() } } - if ( x()+vx < 0 || x()+vx >= canvas()->width() ) + if ( x()+vx < 0 || x()+vx >= canvas()->width() ) vx = 0; - if ( y()+vy < 0 || y()+vy >= canvas()->height() ) + if ( y()+vy < 0 || y()+vy >= canvas()->height() ) vy = 0; setVelocity(vx,vy); @@ -545,7 +545,7 @@ void Main::newView() // Open a new view... have it delete when closed. Main *m = new Main(canvas, 0, 0, WDestructiveClose); tqApp->setMainWidget(m); - m->show(); + m->show(); tqApp->setMainWidget(0); } @@ -914,13 +914,13 @@ int main(int argc, char** argv) TQCanvas canvas(800,600); canvas.setAdvancePeriod(30); Main m(canvas); - m.resize(m.sizeHint()); - m.setCaption("TQt Example - Canvas"); - if ( TQApplication::desktop()->width() > m.width() + 10 - && TQApplication::desktop()->height() > m.height() +30 ) - m.show(); + m.resize(m.sizeHint()); + m.setCaption("TQt Example - Canvas"); + if ( TQApplication::desktop()->width() > m.width() + 10 + && TQApplication::desktop()->height() > m.height() +30 ) + m.show(); else - m.showMaximized(); + m.showMaximized(); TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) ); -- cgit v1.2.3