From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/trivial-nsplugin-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 fb7998729..0e4f7ba82 100644 --- a/doc/html/trivial-nsplugin-example.html +++ b/doc/html/trivial-nsplugin-example.html @@ -45,25 +45,25 @@ to the Plugins directory of your WWW browser.


Implementation:

// TQt stuff
-#include "qnp.h"
-#include <qpainter.h>
-#include <qmessagebox.h>
+#include "ntqnp.h"
+#include <ntqpainter.h>
+#include <ntqmessagebox.h>
 
 class Trivial : public TQNPWidget {
     Q_OBJECT
 public:
     void mouseReleaseEvent(TQMouseEvent* event)
     {
-        TQMessageBox::aboutTQt(this);
+        TQMessageBox::aboutTQt(this);
     }
 
     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