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-dialog-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/motif-dialog-example.html') diff --git a/doc/html/motif-dialog-example.html b/doc/html/motif-dialog-example.html index b30ffda91..87b861801 100644 --- a/doc/html/motif-dialog-example.html +++ b/doc/html/motif-dialog-example.html @@ -56,7 +56,7 @@ public:


Implementation: -

#include <qapplication.h>
+

#include <ntqapplication.h>
 #include <qmotif.h>
 
 #include "mainwindow.h"
@@ -67,13 +67,13 @@ int main( int argc, char **argv )
     XtSetLanguageProc( NULL, NULL, NULL );
 
     TQMotif integrator( "dialog" );
-    TQApplication app( argc, argv );
+    TQApplication app( argc, argv );
 
     MainWindow *mainwindow = new MainWindow;
-    app.setMainWidget( mainwindow );
-    mainwindow->show();
+    app.setMainWidget( mainwindow );
+    mainwindow->show();
 
-    return app.exec();
+    return app.exec();
 }
 
@@ -91,7 +91,7 @@ int main( int argc, char **argv ) #include <Xm/Form.h> #include <Xm/LabelG.h> -#include <qapplication.h> +#include <ntqapplication.h> static void motifDialogCallback( Widget, XtPointer client_data, XtPointer ) @@ -109,7 +109,7 @@ static void qtDialogCallback( Widget, XtPointer client_data, XtPointer ) static void quitCallback( Widget, XtPointer client_data, XtPointer ) { MainWindow *mw = (MainWindow *) client_data; - mw->close(); + mw->close(); } @@ -166,14 +166,14 @@ static void quitCallback( Widget, XtPointer client_data, XtPointer ) XmNheight, 300, NULL ); - setCaption( tr("TQMotif Dialog Example") ); + setCaption( tr("TQMotif Dialog Example") ); } void MainWindow::showMotifDialog() { TQMotifDialog dialog( this, "custom dialog", TRUE ); - dialog.setCaption( tr("Custom Motif Dialog") ); + dialog.setCaption( tr("Custom Motif Dialog") ); Widget form = XmCreateForm( dialog.shell(), "custom motif dialog", NULL, 0 ); @@ -214,14 +214,14 @@ void MainWindow::showMotifDialog() XtAddCallback( button, XmNactivateCallback, (XtCallbackProc) TQMotifDialog::acceptCallback, &dialog ); - dialog.exec(); + dialog.exec(); } void MainWindow::showTQtDialog() { // custom TQt-based dialog using a Motif-based parent CustomDialog customdialog( motifWidget(), "custom dialog", TRUE ); - customdialog.exec(); + customdialog.exec(); }
-- cgit v1.2.1