From 520c05ef06ce203ad32470730f68402bc7719157 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 27 Feb 2012 02:13:42 -0600 Subject: Automated update from qt3 --- doc/html/ntqapplication.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/ntqapplication.html') diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index ef34d5a9b..07f5573f4 100644 --- a/doc/html/ntqapplication.html +++ b/doc/html/ntqapplication.html @@ -696,10 +696,10 @@ entry in the file menu as shown in the following code example:

     // the "Quit" menu entry should try to close all windows
     TQPopupMenu* file = new TQPopupMenu( this );
-    file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), CTRL+Key_Q );
+    file->insertItem( "&Quit", tqApp, SLOT(closeAllWindows()), CTRL+Key_Q );
 
     // when the last window is closed, the application should quit
-    connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
+    connect( tqApp, SIGNAL( lastWindowClosed() ), tqApp, SLOT( quit() ) );
   

The windows are closed in random order, until one window does not @@ -1027,8 +1027,8 @@ reimplementing this virtual function is just one of them. All five approaches are listed below:

  1. Reimplementing this function. This is very powerful, providing -complete control; but only one subclass can be qApp. -

  2. Installing an event filter on qApp. Such an event filter is able +complete control; but only one subclass can be tqApp. +

  3. Installing an event filter on tqApp. Such an event filter is able to process all events for all widgets, so it's just as powerful as reimplementing notify(); furthermore, it's possible to have more than one application-global event filter. Global event filters even @@ -1126,7 +1126,7 @@ you also often connect e.g. TQButton::clicked Example:
         TQPushButton *quitButton = new TQPushButton( "Quit" );
    -    connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
    +    connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
       

    See also exit(), aboutToQuit(), lastWindowClosed(), and TQAction. -- cgit v1.2.1