summaryrefslogtreecommitdiffstats
path: root/examples/addressbook
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-31 22:16:03 +0900
commitecca365daf06c711cf30f93f4c773dabf5642790 (patch)
tree0b2f6780f60fd7eb35c84cc899e7d51db189d67d /examples/addressbook
parent1c30858477bcf3a4c74866d9a3d26f57753dd36a (diff)
downloadtqt3-ecca365daf06c711cf30f93f4c773dabf5642790.tar.gz
tqt3-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/addressbook')
-rw-r--r--examples/addressbook/centralwidget.cpp16
-rw-r--r--examples/addressbook/main.cpp2
-rw-r--r--examples/addressbook/mainwindow.cpp14
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()