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/motif-customwidget-example.html | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc/html/motif-customwidget-example.html') diff --git a/doc/html/motif-customwidget-example.html b/doc/html/motif-customwidget-example.html index 6e02b4f81..ea42cd026 100644 --- a/doc/html/motif-customwidget-example.html +++ b/doc/html/motif-customwidget-example.html @@ -39,12 +39,12 @@ body { background: #ffffff; color: black; }

#ifndef MAINWINDOW_H
 #define MAINWINDOW_H
 
-#include <qmainwindow.h>
+#include <ntqmainwindow.h>
 
 
 class TQMotifWidget;
 
-class MainWindow : public TQMainWindow
+class MainWindow : public TQMainWindow
 {
 public:
     MainWindow();
@@ -60,7 +60,7 @@ private:
 

Implementation:

#include "mainwindow.h"
 
-#include <qapplication.h>
+#include <ntqapplication.h>
 #include <qmotif.h>
 
 
@@ -69,22 +69,22 @@ int main( int argc, char **argv )
     XtSetLanguageProc( NULL, NULL, NULL );
 
     TQMotif integrator( "customwidget" );
-    TQApplication app( argc, argv );
+    TQApplication app( argc, argv );
 
     MainWindow mainwindow;
-    app.setMainWidget( &mainwindow );
-    mainwindow.show();
+    app.setMainWidget( &mainwindow );
+    mainwindow.show();
 
-    return app.exec();
+    return app.exec();
 }
 

#include "mainwindow.h"
 
-#include <qapplication.h>
-#include <qmenubar.h>
-#include <qpopupmenu.h>
-#include <qstatusbar.h>
+#include <ntqapplication.h>
+#include <ntqmenubar.h>
+#include <ntqpopupmenu.h>
+#include <ntqstatusbar.h>
 
 #include <qmotifwidget.h>
 
@@ -94,13 +94,13 @@ int main( int argc, char **argv )
 
 
 MainWindow::MainWindow()
-    : TQMainWindow( 0, "mainwindow" )
+    : TQMainWindow( 0, "mainwindow" )
 {
-    TQPopupMenu *filemenu = new TQPopupMenu( this );
-    filemenu->insertItem( tr("&Quit"), qApp, SLOT(quit()) );
+    TQPopupMenu *filemenu = new TQPopupMenu( this );
+    filemenu->insertItem( tr("&Quit"), qApp, SLOT(quit()) );
 
-    menuBar()->insertItem( tr("&File"), filemenu );
-    statusBar()->message( tr("This is a TQMainWindow with an XmText widget.") );
+    menuBar()->insertItem( tr("&File"), filemenu );
+    statusBar()->message( tr("This is a TQMainWindow with an XmText widget.") );
 
     customwidget =
         new TQMotifWidget( this, xmFormWidgetClass, NULL, 0, "form" );
@@ -129,9 +129,9 @@ int main( int argc, char **argv )
     XtManageChild( texteditor );
     XtManageChild( button );
 
-    setCentralWidget( customwidget );
+    setCentralWidget( customwidget );
 
-    resize( 400, 600 );
+    resize( 400, 600 );
 }
 
 
-- cgit v1.2.3