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/trivial-nsplugin-example.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/trivial-nsplugin-example.html') diff --git a/doc/html/trivial-nsplugin-example.html b/doc/html/trivial-nsplugin-example.html index 6b974096d..88904540a 100644 --- a/doc/html/trivial-nsplugin-example.html +++ b/doc/html/trivial-nsplugin-example.html @@ -46,7 +46,7 @@ to the Plugins directory of your WWW browser. Implementation:

// TQt stuff
 #include "ntqnp.h"
-#include <ntqpainter.h>
+#include <tqpainter.h>
 #include <ntqmessagebox.h>
 
 class Trivial : public TQNPWidget {
@@ -59,11 +59,11 @@ public:
 
     void paintEvent(TQPaintEvent* event)
     {
-        TQPainter p(this);
-        p.setClipRect(event->rect());
+        TQPainter p(this);
+        p.setClipRect(event->rect());
         int w = width();
-        p.drawRect(rect());
-        p.drawText(w/8, 0, w-w/4, height(), AlignCenter|WordBreak, "Trivial!");
+        p.drawRect(rect());
+        p.drawText(w/8, 0, w-w/4, height(), AlignCenter|WordBreak, "Trivial!");
     }
 };
 
@@ -77,7 +77,7 @@ public:
 
     void print(TQPainter* p)
     {
-        p->drawText(0,0,"Hello");
+        p->drawText(0,0,"Hello");
     }
 };
 
-- 
cgit v1.2.1