diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-31 22:16:03 +0900 | 
| commit | ecca365daf06c711cf30f93f4c773dabf5642790 (patch) | |
| tree | 0b2f6780f60fd7eb35c84cc899e7d51db189d67d /examples/application | |
| parent | 1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff) | |
| download | tqt-ecca365daf06c711cf30f93f4c773dabf5642790.tar.gz tqt-ecca365daf06c711cf30f93f4c773dabf5642790.zip  | |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
Diffstat (limited to 'examples/application')
| -rw-r--r-- | examples/application/application.cpp | 26 | ||||
| -rw-r--r-- | examples/application/main.cpp | 2 | 
2 files changed, 14 insertions, 14 deletions
diff --git a/examples/application/application.cpp b/examples/application/application.cpp index d67a5149d..455bcc425 100644 --- a/examples/application/application.cpp +++ b/examples/application/application.cpp @@ -45,17 +45,17 @@ ApplicationWindow::ApplicationWindow()      openIcon = TQPixmap( fileopen );      TQToolButton * fileOpen  	= new TQToolButton( openIcon, "Open File", TQString::null, -			   this, SLOT(choose()), fileTools, "open file" ); +			   this, TQ_SLOT(choose()), fileTools, "open file" );      saveIcon = TQPixmap( filesave );      TQToolButton * fileSave  	= new TQToolButton( saveIcon, "Save File", TQString::null, -			   this, SLOT(save()), fileTools, "save file" ); +			   this, TQ_SLOT(save()), fileTools, "save file" );      printIcon = TQPixmap( fileprint );      TQToolButton * filePrint  	= new TQToolButton( printIcon, "Print File", TQString::null, -			   this, SLOT(print()), fileTools, "print file" ); +			   this, TQ_SLOT(print()), fileTools, "print file" );      (void)TQWhatsThis::whatsThisButton( fileTools ); @@ -88,41 +88,41 @@ ApplicationWindow::ApplicationWindow()      menuBar()->insertItem( "&File", file ); -    file->insertItem( "&New", this, SLOT(newDoc()), CTRL+Key_N ); +    file->insertItem( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N );      int id;      id = file->insertItem( openIcon, "&Open...", -			   this, SLOT(choose()), CTRL+Key_O ); +			   this, TQ_SLOT(choose()), CTRL+Key_O );      file->setWhatsThis( id, fileOpenText );      id = file->insertItem( saveIcon, "&Save", -			   this, SLOT(save()), CTRL+Key_S ); +			   this, TQ_SLOT(save()), CTRL+Key_S );      file->setWhatsThis( id, fileSaveText ); -    id = file->insertItem( "Save &As...", this, SLOT(saveAs()) ); +    id = file->insertItem( "Save &As...", this, TQ_SLOT(saveAs()) );      file->setWhatsThis( id, fileSaveText );      file->insertSeparator();      id = file->insertItem( printIcon, "&Print...", -			   this, SLOT(print()), CTRL+Key_P ); +			   this, TQ_SLOT(print()), CTRL+Key_P );      file->setWhatsThis( id, filePrintText );      file->insertSeparator(); -    file->insertItem( "&Close", this, SLOT(close()), CTRL+Key_W ); +    file->insertItem( "&Close", this, TQ_SLOT(close()), CTRL+Key_W ); -    file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q ); +    file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );      menuBar()->insertSeparator();      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()), SHIFT+Key_F1 ); +    help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 );      e = new TQTextEdit( this, "editor" );      e->setFocus(); diff --git a/examples/application/main.cpp b/examples/application/main.cpp index faf5eb0c2..442af1206 100644 --- a/examples/application/main.cpp +++ b/examples/application/main.cpp @@ -15,6 +15,6 @@ int main( int argc, char ** argv ) {      ApplicationWindow *mw = new ApplicationWindow();      mw->setCaption( "TQt Example - Application" );      mw->show(); -    a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); +    a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );      return a.exec();  }  | 
