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/toggleaction-example.html | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'doc/html/toggleaction-example.html') diff --git a/doc/html/toggleaction-example.html b/doc/html/toggleaction-example.html index 8e5247404..2065fc1a0 100644 --- a/doc/html/toggleaction-example.html +++ b/doc/html/toggleaction-example.html @@ -33,39 +33,39 @@ body { background: #ffffff; color: black; }

-

This example program demonstrates the use of TQAction +

This example program demonstrates the use of TQAction in its incarnation as a toggle action.


Main: -

#include <qapplication.h>
-#include <qmainwindow.h>
-#include <qtoolbar.h>
-#include <qaction.h>
+

#include <ntqapplication.h>
+#include <ntqmainwindow.h>
+#include <ntqtoolbar.h>
+#include <ntqaction.h>
 
 #include "labelonoff.xpm"
 
 int main( int argc, char **argv )
 {
-    TQApplication app( argc, argv );
-    TQMainWindow * window = new TQMainWindow;
-    window->setCaption("TQt Example - Toggleaction");
-    TQToolBar * toolbar = new TQToolBar( window );
+    TQApplication app( argc, argv );
+    TQMainWindow * window = new TQMainWindow;
+    window->setCaption("TQt Example - Toggleaction");
+    TQToolBar * toolbar = new TQToolBar( window );
 
-    TQAction * labelonoffaction = new TQAction( window, "labelonoff" );
-    labelonoffaction->setToggleAction( TRUE );
+    TQAction * labelonoffaction = new TQAction( window, "labelonoff" );
+    labelonoffaction->setToggleAction( TRUE );
 
-    labelonoffaction->setText( "labels on/off" );
-    labelonoffaction->setAccel( TQt::ALT+TQt::Key_L );
-    labelonoffaction->setIconSet( (TQPixmap) labelonoff_xpm );
+    labelonoffaction->setText( "labels on/off" );
+    labelonoffaction->setAccel( TQt::ALT+TQt::Key_L );
+    labelonoffaction->setIconSet( (TQPixmap) labelonoff_xpm );
 
-    TQObject::connect( labelonoffaction, SIGNAL( toggled( bool ) ),
-                      window, SLOT( setUsesTextLabel( bool ) ) );
+    TQObject::connect( labelonoffaction, SIGNAL( toggled( bool ) ),
+                      window, SLOT( setUsesTextLabel( bool ) ) );
 
-    labelonoffaction->addTo( toolbar );
+    labelonoffaction->addTo( toolbar );
 
-    app.setMainWidget( window );
-    window->show();
-    return app.exec();
+    app.setMainWidget( window );
+    window->show();
+    return app.exec();
 }
 
 
-- cgit v1.2.1