From 0f92dd542b65bc910caaf190b7c623aa5158c86a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 14 Nov 2011 22:33:41 -0600 Subject: Fix native TQt3 accidental conversion to tquit --- doc/html/tutorial1-14.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/html/tutorial1-14.html') diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html index b155373eb..957e99832 100644 --- a/doc/html/tutorial1-14.html +++ b/doc/html/tutorial1-14.html @@ -221,12 +221,12 @@ keys. Note that an accelerator is a child of a widget and will be destroyed when that widget is destroyed. TQAccel is not a widget and has no visible effect on its parent.

We define two shortcut keys. We want the slot fire() to be called -when the user presses Enter, and we want the application to tquit when +when the user presses Enter, and we want the application to quit when key Ctrl+Q is pressed. Because Enter is sometimes Return and there are even keyboards with both keys, we make both Enter and Return invoke fire().

        accel->connectItem( accel->insertItem( CTRL+Key_Q ),
-                            qApp, SLOT(tquit()) );
+                            qApp, SLOT(quit()) );
 

And then we set up Ctrl+Q to do the same thing as Alt+Q. Some people are more used to Ctrl+Q (and anyway it shows how do do it). @@ -234,7 +234,7 @@ people are more used to Ctrl+Q (and anyway it shows how do do it). TQt. They're actually TQt::Key_Enter, etc., but practically all classes inherit the TQt namespace class.

        TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
-        grid->addWidget( tquit, 0, 0 );
+        grid->addWidget( quit, 0, 0 );
         grid->addWidget( box, 1, 1 );
         grid->setColStretch( 1, 10 );
 
-- cgit v1.2.1