summaryrefslogtreecommitdiffstats
path: root/examples/action
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-27 19:25:43 +0900
commitfb401a891f1b426e9419c0cb16403df407138611 (patch)
tree045b51949b3140039e37d898d8b0513016a86bea /examples/action
parenta9d178f1000475ba1727ffe123a2c54585488c01 (diff)
downloadtqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz
tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/action')
-rw-r--r--examples/action/application.cpp30
-rw-r--r--examples/action/main.cpp2
-rw-r--r--examples/action/toggleaction/toggleaction.cpp4
3 files changed, 18 insertions, 18 deletions
diff --git a/examples/action/application.cpp b/examples/action/application.cpp
index 0edd623c2..ecd70cdd0 100644
--- a/examples/action/application.cpp
+++ b/examples/action/application.cpp
@@ -46,12 +46,12 @@ ApplicationWindow::ApplicationWindow()
TQAction * fileCloseAction, * fileQuitAction;
fileNewAction = new TQAction( "&New", CTRL+Key_N, this, "new" );
- connect( fileNewAction, SIGNAL( activated() ) , this,
- SLOT( newDoc() ) );
+ connect( fileNewAction, TQ_SIGNAL( activated() ) , this,
+ TQ_SLOT( newDoc() ) );
fileOpenAction = new TQAction( TQPixmap( fileopen ), "&Open...",
CTRL+Key_O, this, "open" );
- connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) );
+ connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) );
const char * fileOpenText = "<p><img source=\"fileopen\"> "
"Click this button to open a <em>new file</em>. <br>"
@@ -63,7 +63,7 @@ ApplicationWindow::ApplicationWindow()
fileSaveAction = new TQAction( TQPixmap( filesave ),
"&Save", CTRL+Key_S, this, "save" );
- connect( fileSaveAction, SIGNAL( activated() ) , this, SLOT( save() ) );
+ connect( fileSaveAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( save() ) );
const char * fileSaveText = "<p>Click this button to save the file you "
"are editing. You will be prompted for a file name.\n"
@@ -73,14 +73,14 @@ ApplicationWindow::ApplicationWindow()
fileSaveAsAction = new TQAction( "Save File As", "Save &As...", 0, this,
"save as" );
- connect( fileSaveAsAction, SIGNAL( activated() ) , this,
- SLOT( saveAs() ) );
+ connect( fileSaveAsAction, TQ_SIGNAL( activated() ) , this,
+ TQ_SLOT( saveAs() ) );
fileSaveAsAction->setWhatsThis( fileSaveText );
filePrintAction = new TQAction( "Print File", TQPixmap( fileprint ),
"&Print...", CTRL+Key_P, this, "print" );
- connect( filePrintAction, SIGNAL( activated() ) , this,
- SLOT( print() ) );
+ connect( filePrintAction, TQ_SIGNAL( activated() ) , this,
+ TQ_SLOT( print() ) );
const char * filePrintText = "Click this button to print the file you "
"are editing.\n You can also select the Print "
@@ -89,13 +89,13 @@ ApplicationWindow::ApplicationWindow()
fileCloseAction = new TQAction( "Close", "&Close", CTRL+Key_W, this,
"close" );
- connect( fileCloseAction, SIGNAL( activated() ) , this,
- SLOT( close() ) );
+ connect( fileCloseAction, TQ_SIGNAL( activated() ) , this,
+ TQ_SLOT( close() ) );
fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this,
"quit" );
- connect( fileQuitAction, SIGNAL( activated() ) , tqApp,
- SLOT( closeAllWindows() ) );
+ connect( fileQuitAction, TQ_SIGNAL( activated() ) , tqApp,
+ TQ_SLOT( closeAllWindows() ) );
// populate a tool bar with some actions
@@ -128,10 +128,10 @@ ApplicationWindow::ApplicationWindow()
TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertItem( "&Help", help );
- help->insertItem( "&About", this, SLOT(about()), Key_F1 );
- help->insertItem( "About &TQt", this, SLOT(aboutTQt()) );
+ help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
+ help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt()) );
help->insertSeparator();
- help->insertItem( "What's &This", this, SLOT(whatsThis()),
+ help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()),
SHIFT+Key_F1 );
diff --git a/examples/action/main.cpp b/examples/action/main.cpp
index ca75f8c25..fd3df5054 100644
--- a/examples/action/main.cpp
+++ b/examples/action/main.cpp
@@ -15,6 +15,6 @@ int main( int argc, char ** argv ) {
ApplicationWindow * mw = new ApplicationWindow();
mw->setCaption( "Document 1" );
mw->show();
- a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
return a.exec();
}
diff --git a/examples/action/toggleaction/toggleaction.cpp b/examples/action/toggleaction/toggleaction.cpp
index 810de04c1..5da1a685c 100644
--- a/examples/action/toggleaction/toggleaction.cpp
+++ b/examples/action/toggleaction/toggleaction.cpp
@@ -19,8 +19,8 @@ int main( int argc, char **argv )
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, TQ_SIGNAL( toggled( bool ) ),
+ window, TQ_SLOT( setUsesTextLabel( bool ) ) );
labelonoffaction->addTo( toolbar );