From ecca365daf06c711cf30f93f4c773dabf5642790 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 (cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611) --- doc/html/tutorial2-05.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/tutorial2-05.html') diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html index 35a797c40..ade4d2572 100644 --- a/doc/html/tutorial2-05.html +++ b/doc/html/tutorial2-05.html @@ -163,7 +163,7 @@ toolbar buttons stay in sync and saves duplicating code.

        fileNewAction = new TQAction(
                 "New Chart", TQPixmap( file_new ),
                 "&New", CTRL+Key_N, this, "new" );
-        connect( fileNewAction, SIGNAL( activated() ), this, SLOT( fileNew() ) );
+        connect( fileNewAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileNew() ) );
 

When we construct an action we give it a name, an optional icon, a menu text, and an accelerator short-cut key (or 0 if no accelerator is @@ -257,8 +257,8 @@ the settings. We attempt to read each possible file entry ("File1" to "File9"), and add each non-empty entry to the list of recently used files. If there are one or more recently used files we update the File menu by calling updateRecentFilesMenu(); (we'll review this later on). -

        connect( chartGroup, SIGNAL( selected(TQAction*) ),
-                 this, SLOT( updateChartType(TQAction*) ) );
+

        connect( chartGroup, TQ_SIGNAL( selected(TQAction*) ),
+                 this, TQ_SLOT( updateChartType(TQAction*) ) );
 

Now that we have set the chart type (when we read it in as a user setting) it is safe to connect the chart group to our @@ -442,7 +442,7 @@ opened files list and call fileSave() (covered in Fi if ( i < int(m_recentFiles.count()) ) fileMenu->insertItem( TQString( "&%1 %2" ). arg( i + 1 ).arg( m_recentFiles[i] ), - this, SLOT( fileOpenRecent(int) ), + this, TQ_SLOT( fileOpenRecent(int) ), 0, i ); } } -- cgit v1.2.3