From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/scrollview-example.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/scrollview-example.html') diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index ae774fe80..d44a665b2 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -53,7 +53,7 @@ optimized for very large contents. #include <tqpopupmenu.h> #include <ntqpushbutton.h> #include <tqpainter.h> -#include <ntqpixmap.h> +#include <tqpixmap.h> #include <ntqmessagebox.h> #include <ntqlayout.h> #include <ntqlabel.h> @@ -125,7 +125,7 @@ public: TQScrollView(parent,"matrix", WStaticContents), bg("bg.ppm") { - bg.load("bg.ppm"); + bg.load("bg.ppm"); resizeContents(400000,300000); dragging = 0; @@ -167,11 +167,11 @@ protected: void drawContents(TQPainter* p, int cx, int cy, int cw, int ch) { // The Background - if ( !bg.isNull() ) { - int rowheight=bg.height(); + if ( !bg.isNull() ) { + int rowheight=bg.height(); int toprow=cy/rowheight; int bottomrow=(cy+ch+rowheight-1)/rowheight; - int colwidth=bg.width(); + int colwidth=bg.width(); int leftcol=cx/colwidth; int rightcol=(cx+cw+colwidth-1)/colwidth; for (int r=toprow; r<=bottomrow; r++) { @@ -231,7 +231,7 @@ protected: } private: - TQPixmap bg; + TQPixmap bg; }; class ScrollViewExample : public TQWidget { -- cgit v1.2.3