From fb401a891f1b426e9419c0cb16403df407138611 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 27 Dec 2023 19:25:43 +0900 Subject: Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT Signed-off-by: Michele Calgaro --- 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 c5a94dbc5..094c8081c 100644 --- a/doc/html/tutorial1-14.html +++ b/doc/html/tutorial1-14.html @@ -210,9 +210,9 @@ box, the effect is that the TQVBox will put a frame a CannonField.

        TQAccel *accel = new TQAccel( this );
         accel->connectItem( accel->insertItem( Key_Enter ),
-                            this, SLOT(fire()) );
+                            this, TQ_SLOT(fire()) );
         accel->connectItem( accel->insertItem( Key_Return ),
-                            this, SLOT(fire()) );
+                            this, TQ_SLOT(fire()) );
 

Here we create and set up an accelerator. An accelerator is an object that intercepts keyboard events to an application and calls slots if @@ -226,7 +226,7 @@ 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 ),
-                            tqApp, SLOT(quit()) );
+                            tqApp, TQ_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). -- cgit v1.2.1