From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/scrollview-example.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/scrollview-example.html') diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index 41788d0fa..40bbb06f9 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -85,9 +85,9 @@ public: TQButton* q=new TQPushButton("Quit", this); connect(q, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit())); } else { - TQString str; + TQString str; if ( b > 0 ) { - str.sprintf("Button %d", b++); + str.sprintf("Button %d", b++); } else { str = "I'm shrinking!"; ++b; @@ -156,8 +156,8 @@ public: int cy = childY(dragging); int w = mx - cx + 1; int h = my - cy + 1; - TQString msg; - msg.sprintf("at (%d,%d) %d by %d",cx,cy,w,h); + TQString msg; + msg.sprintf("at (%d,%d) %d by %d",cx,cy,w,h); dragging->setText(msg); dragging->resize(w,h); } @@ -194,12 +194,12 @@ protected: int colwidth=fm.width("00000,000000 ")+3; int leftcol=cx/colwidth; int rightcol=(cx+cw+colwidth-1)/colwidth; - TQString str; + TQString str; for (int r=toprow; r<=bottomrow; r++) { int py=r*rowheight; for (int c=leftcol; c<=rightcol; c++) { int px=c*colwidth; - str.sprintf("%d,%d",c,r); + str.sprintf("%d,%d",c,r); p->drawText(px+3, py+fm.ascent(), str); } } @@ -208,8 +208,8 @@ protected: if (leftcol<10 && toprow<5) { p->setFont(TQFont("Charter",30)); p->setPen(red); - TQString text; - text.sprintf("HINT: Look at %d,%d",215000/colwidth,115000/rowheight); + TQString text; + text.sprintf("HINT: Look at %d,%d",215000/colwidth,115000/rowheight); p->drawText(100,50,text); } } @@ -308,8 +308,8 @@ public: TQ_CHECK_PTR( lw_options ); lw_options->setCheckable( TRUE ); for (int lw = 1; lw <= max_lw; lw++) { - TQString str; - str.sprintf("%d Pixels", lw); + TQString str; + str.sprintf("%d Pixels", lw); lw_options->insertItem( str, lw_id | lw ); } f_options->insertItem( "Line Width", lw_options ); @@ -319,8 +319,8 @@ public: TQ_CHECK_PTR( mlw_options ); mlw_options->setCheckable( TRUE ); for (int mlw = 0; mlw <= max_mlw; mlw++) { - TQString str; - str.sprintf("%d Pixels", mlw); + TQString str; + str.sprintf("%d Pixels", mlw); mlw_options->insertItem( str, mlw_id | mlw ); } f_options->insertItem( "Midline Width", mlw_options ); @@ -330,8 +330,8 @@ public: TQ_CHECK_PTR( mw_options ); mw_options->setCheckable( TRUE ); for (int mw = 0; mw <= max_mw; mw++) { - TQString str; - str.sprintf("%d Pixels", mw); + TQString str; + str.sprintf("%d Pixels", mw); mw_options->insertItem( str, mw_id | mw ); } f_options->insertItem( "Margin Width", mw_options ); -- cgit v1.2.1