From 397b7afa8e3f32268c4454bf4783ac2a5a799658 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 15 Oct 2024 13:05:33 +0900 Subject: Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/canvas-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/canvas-example.html') diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 782592399..d0d4a990d 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -137,7 +137,7 @@ private: #include <tqstatusbar.h> #include <tqmessagebox.h> #include <tqmenubar.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpainter.h> #include <tqprinter.h> #include <tqlabel.h> @@ -445,7 +445,7 @@ static TQImage *logoimg; file->insertSeparator(); file->insertItem("&Print...", this, TQ_SLOT(print()), CTRL+Key_P); file->insertSeparator(); - file->insertItem("E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q); + file->insertItem("E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q); menu->insertItem("&File", file); TQPopupMenu* edit = new TQPopupMenu( menu ); @@ -535,9 +535,9 @@ void Main::newView() { // Open a new view... have it delete when closed. Main *m = new Main(canvas, 0, 0, WDestructiveClose); - tqApp->setMainWidget(m); + tqApp->setMainWidget(m); m->show(); - tqApp->setMainWidget(0); + tqApp->setMainWidget(0); } void Main::clear() @@ -878,7 +878,7 @@ void Main::addRectangle()

#include <tqstatusbar.h>
 #include <tqmessagebox.h>
 #include <tqmenubar.h>
-#include <ntqapplication.h>
+#include <tqapplication.h>
 #include <tqimage.h>
 
 #include "canvas.h"
@@ -890,7 +890,7 @@ extern TQString logo_fn;
 
 int main(int argc, char** argv)
 {
-    TQApplication app(argc,argv);
+    TQApplication app(argc,argv);
 
     if ( argc > 1 )
         butterfly_fn = argv[1];
@@ -907,15 +907,15 @@ int main(int argc, char** argv)
     Main m(canvas);
     m.resize(m.sizeHint());
     m.setCaption("TQt Example - Canvas");
-    if ( TQApplication::desktop()->width() > m.width() + 10
-        && TQApplication::desktop()->height() > m.height() +30 )
+    if ( TQApplication::desktop()->width() > m.width() + 10
+        && TQApplication::desktop()->height() > m.height() +30 )
         m.show();
     else
         m.showMaximized();
 
-    TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) );
+    TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) );
 
-    return app.exec();
+    return app.exec();
 }
 
 
-- cgit v1.2.3