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-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /examples/addressbook | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-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/addressbook')
-rw-r--r-- | examples/addressbook/centralwidget.cpp | 16 | ||||
-rw-r--r-- | examples/addressbook/main.cpp | 2 | ||||
-rw-r--r-- | examples/addressbook/mainwindow.cpp | 14 |
3 files changed, 16 insertions, 16 deletions
diff --git a/examples/addressbook/centralwidget.cpp b/examples/addressbook/centralwidget.cpp index 51e67f73b..82a2c81ae 100644 --- a/examples/addressbook/centralwidget.cpp +++ b/examples/addressbook/centralwidget.cpp @@ -100,7 +100,7 @@ void ABCentralWidget::setupTabWidget() add = new TQPushButton( "A&dd", input ); add->resize( add->sizeHint() ); grid1->addWidget( add, 0, 4 ); - connect( add, SIGNAL( clicked() ), this, SLOT( addEntry() ) ); + connect( add, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addEntry() ) ); iFirstName = new TQLineEdit( input ); iFirstName->resize( iFirstName->sizeHint() ); @@ -125,7 +125,7 @@ void ABCentralWidget::setupTabWidget() change = new TQPushButton( "&Change", input ); change->resize( change->sizeHint() ); grid1->addWidget( change, 1, 4 ); - connect( change, SIGNAL( clicked() ), this, SLOT( changeEntry() ) ); + connect( change, TQ_SIGNAL( clicked() ), this, TQ_SLOT( changeEntry() ) ); tabWidget->addTab( input, "&Add/Change Entry" ); @@ -137,22 +137,22 @@ void ABCentralWidget::setupTabWidget() cFirstName = new TQCheckBox( "First &Name", search ); cFirstName->resize( cFirstName->sizeHint() ); grid2->addWidget( cFirstName, 0, 0 ); - connect( cFirstName, SIGNAL( clicked() ), this, SLOT( toggleFirstName() ) ); + connect( cFirstName, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleFirstName() ) ); cLastName = new TQCheckBox( "&Last Name", search ); cLastName->resize( cLastName->sizeHint() ); grid2->addWidget( cLastName, 0, 1 ); - connect( cLastName, SIGNAL( clicked() ), this, SLOT( toggleLastName() ) ); + connect( cLastName, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleLastName() ) ); cAddress = new TQCheckBox( "Add&ress", search ); cAddress->resize( cAddress->sizeHint() ); grid2->addWidget( cAddress, 0, 2 ); - connect( cAddress, SIGNAL( clicked() ), this, SLOT( toggleAddress() ) ); + connect( cAddress, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleAddress() ) ); cEMail = new TQCheckBox( "&E-Mail", search ); cEMail->resize( cEMail->sizeHint() ); grid2->addWidget( cEMail, 0, 3 ); - connect( cEMail, SIGNAL( clicked() ), this, SLOT( toggleEMail() ) ); + connect( cEMail, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toggleEMail() ) ); sFirstName = new TQLineEdit( search ); sFirstName->resize( sFirstName->sizeHint() ); @@ -173,7 +173,7 @@ void ABCentralWidget::setupTabWidget() find = new TQPushButton( "F&ind", search ); find->resize( find->sizeHint() ); grid2->addWidget( find, 1, 4 ); - connect( find, SIGNAL( clicked() ), this, SLOT( findEntries() ) ); + connect( find, TQ_SIGNAL( clicked() ), this, TQ_SLOT( findEntries() ) ); cFirstName->setChecked( TRUE ); sFirstName->setEnabled( TRUE ); @@ -196,7 +196,7 @@ void ABCentralWidget::setupListView() listView->setSelectionMode( TQListView::Single ); - connect( listView, SIGNAL( clicked( TQListViewItem* ) ), this, SLOT( itemSelected( TQListViewItem* ) ) ); + connect( listView, TQ_SIGNAL( clicked( TQListViewItem* ) ), this, TQ_SLOT( itemSelected( TQListViewItem* ) ) ); mainGrid->addWidget( listView, 1, 0 ); listView->setAllColumnsShowFocus( TRUE ); diff --git a/examples/addressbook/main.cpp b/examples/addressbook/main.cpp index b74f36e4d..80c36dc05 100644 --- a/examples/addressbook/main.cpp +++ b/examples/addressbook/main.cpp @@ -20,7 +20,7 @@ int main( int argc, char ** argv ) a.setMainWidget( mw ); mw->show(); - a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); + a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), &a, TQ_SLOT( quit() ) ); int result = a.exec(); delete mw; return result; diff --git a/examples/addressbook/mainwindow.cpp b/examples/addressbook/mainwindow.cpp index 11b93a8e0..09176d316 100644 --- a/examples/addressbook/mainwindow.cpp +++ b/examples/addressbook/mainwindow.cpp @@ -38,16 +38,16 @@ void ABMainWindow::setupMenuBar() TQPopupMenu *file = new TQPopupMenu( this ); menuBar()->insertItem( "&File", file ); - file->insertItem( "New", this, SLOT( fileNew() ), CTRL + Key_N ); - file->insertItem( TQPixmap( "fileopen.xpm" ), "Open", this, SLOT( fileOpen() ), CTRL + Key_O ); + file->insertItem( "New", this, TQ_SLOT( fileNew() ), CTRL + Key_N ); + file->insertItem( TQPixmap( "fileopen.xpm" ), "Open", this, TQ_SLOT( fileOpen() ), CTRL + Key_O ); file->insertSeparator(); - file->insertItem( TQPixmap( "filesave.xpm" ), "Save", this, SLOT( fileSave() ), CTRL + Key_S ); - file->insertItem( "Save As...", this, SLOT( fileSaveAs() ) ); + file->insertItem( TQPixmap( "filesave.xpm" ), "Save", this, TQ_SLOT( fileSave() ), CTRL + Key_S ); + file->insertItem( "Save As...", this, TQ_SLOT( fileSaveAs() ) ); file->insertSeparator(); - file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P ); + file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, TQ_SLOT( filePrint() ), CTRL + Key_P ); file->insertSeparator(); - file->insertItem( "Close", this, SLOT( closeWindow() ), CTRL + Key_W ); - file->insertItem( "Quit", tqApp, SLOT( quit() ), CTRL + Key_Q ); + file->insertItem( "Close", this, TQ_SLOT( closeWindow() ), CTRL + Key_W ); + file->insertItem( "Quit", tqApp, TQ_SLOT( quit() ), CTRL + Key_Q ); } void ABMainWindow::setupFileTools() |