From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/scrollview-example.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/scrollview-example.html') diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index 33b5df43c..ae774fe80 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -52,7 +52,7 @@ optimized for very large contents. #include <tqmenubar.h> #include <tqpopupmenu.h> #include <ntqpushbutton.h> -#include <ntqpainter.h> +#include <tqpainter.h> #include <ntqpixmap.h> #include <ntqmessagebox.h> #include <ntqlayout.h> @@ -187,11 +187,11 @@ protected: // The Numbers { - TQFontMetrics fm=p->fontMetrics(); - int rowheight=fm.lineSpacing(); + TQFontMetrics fm=p->fontMetrics(); + int rowheight=fm.lineSpacing(); int toprow=cy/rowheight; int bottomrow=(cy+ch+rowheight-1)/rowheight; - int colwidth=fm.width("00000,000000 ")+3; + int colwidth=fm.width("00000,000000 ")+3; int leftcol=cx/colwidth; int rightcol=(cx+cw+colwidth-1)/colwidth; TQString str; @@ -200,7 +200,7 @@ protected: for (int c=leftcol; c<=rightcol; c++) { int px=c*colwidth; str.sprintf("%d,%d",c,r); - p->drawText(px+3, py+fm.ascent(), str); + p->drawText(px+3, py+fm.ascent(), str); } } -- cgit v1.2.3