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 /tutorial/t15/main.cpp | |
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 'tutorial/t15/main.cpp')
-rw-r--r-- | tutorial/t15/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tutorial/t15/main.cpp b/tutorial/t15/main.cpp index 9277ce17d..6fcbc1e72 100644 --- a/tutorial/t15/main.cpp +++ b/tutorial/t15/main.cpp @@ -23,7 +23,7 @@ void WorkerObject::run() if (!eventLoop) return; TQTimer *t = new TQTimer(this); - connect( t, SIGNAL(timeout()), SLOT(timerHandler()) ); + connect( t, TQ_SIGNAL(timeout()), TQ_SLOT(timerHandler()) ); t->start( 1000, FALSE ); for( int count = 0; count < 5; count++ ) { @@ -61,8 +61,8 @@ void MainObject::buttonClicked() WorkerObject x; \ x.threadFriendlyName = y; \ x.moveToThread(&z); \ - TQObject::connect(&x, SIGNAL(displayMessage(TQString,TQString)), &mainobject, SLOT(emitMessage(TQString,TQString))); \ - TQTimer::singleShot(0, &x, SLOT(run())); + TQObject::connect(&x, TQ_SIGNAL(displayMessage(TQString,TQString)), &mainobject, TQ_SLOT(emitMessage(TQString,TQString))); \ + TQTimer::singleShot(0, &x, TQ_SLOT(run())); int main( int argc, char **argv ) { @@ -142,7 +142,7 @@ int main( int argc, char **argv ) workerthread19.start(); a.setMainWidget( &hello ); - TQObject::connect(&hello, SIGNAL(clicked()), &mainobject, SLOT(buttonClicked())); + TQObject::connect(&hello, TQ_SIGNAL(clicked()), &mainobject, TQ_SLOT(buttonClicked())); hello.show(); a.exec(); hello.hide(); |