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/extension-dialog-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/extension-dialog-example.html') diff --git a/doc/html/extension-dialog-example.html b/doc/html/extension-dialog-example.html index 281905abf..074b091ce 100644 --- a/doc/html/extension-dialog-example.html +++ b/doc/html/extension-dialog-example.html @@ -36,7 +36,7 @@ body { background: #ffffff; color: black; }

This example demonstrates how to create an extension dialog.

Essentially all that is necessary is to create a standard dialog -and then create a TQWidget form to be used as the extension. See +and then create a TQWidget form to be used as the extension. See the article in TQt Quarterly issue #3.


@@ -67,15 +67,15 @@ DBFILE = extension.db *****************************************************************************/ #include "dialogform.h" #include "extension.h" -#include <qapplication.h> -#include <qcheckbox.h> -#include <qlineedit.h> +#include <ntqapplication.h> +#include <ntqcheckbox.h> +#include <ntqlineedit.h> void MainForm::init() { sessions = FALSE; logging = FALSE; - log_filename = TQString::null; + log_filename = TQString::null; log_errors = TRUE; log_actions = TRUE; } @@ -102,7 +102,7 @@ void MainForm::optionsDlg() void MainForm::quit() { - TQApplication::exit( 0 ); + TQApplication::exit( 0 ); } @@ -126,7 +126,7 @@ void DialogForm::toggleDetails() { extensionShown = !extensionShown; showExtension( extensionShown ); - TQString text = tr( "&Details " ); + TQString text = tr( "&Details " ); text += TQString( extensionShown ? "<<<" : ">>>" ); detailsPushButton->setText( text ); } @@ -143,16 +143,16 @@ void DialogForm::toggleDetails()


Main: -

#include <qapplication.h>
+

#include <ntqapplication.h>
 #include "mainform.h"
 
 int main( int argc, char ** argv )
 {
-    TQApplication a( argc, argv );
+    TQApplication a( argc, argv );
     MainForm *w = new MainForm;
     w->show();
-    a.connect( &a, SIGNAL( lastWindowClosed() ), w, SLOT( quit() ) );
-    return a.exec();
+    a.connect( &a, SIGNAL( lastWindowClosed() ), w, SLOT( quit() ) );
+    return a.exec();
 }
 
-- cgit v1.2.3