From 947bc2dba5274c3a87dd0f3dc29972b5a7fde80f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 10 Jan 2024 10:12:24 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 301b5380792b7a368488aa485d3bdb3df81e0808) --- PerlTQt/examples/network/httpd/httpd.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'PerlTQt/examples/network/httpd') diff --git a/PerlTQt/examples/network/httpd/httpd.pl b/PerlTQt/examples/network/httpd/httpd.pl index a9aa0fd..dee279b 100644 --- a/PerlTQt/examples/network/httpd/httpd.pl +++ b/PerlTQt/examples/network/httpd/httpd.pl @@ -39,8 +39,8 @@ sub NEW sub newConnection { my $s = TQt::Socket( this ); - this->connect( $s, TQT_SIGNAL 'readyRead()', this, TQT_SLOT 'readClient()' ); - this->connect( $s, TQT_SIGNAL 'delayedCloseFinished()', this, TQT_SLOT 'discardClient()' ); + this->connect( $s, TQ_SIGNAL 'readyRead()', this, TQ_SLOT 'readClient()' ); + this->connect( $s, TQ_SIGNAL 'delayedCloseFinished()', this, TQ_SLOT 'discardClient()' ); $s->setSocket( shift ); sockets->{ $s } = $s; emit newConnect(); @@ -106,10 +106,10 @@ sub NEW $lb->setAlignment( &AlignHCenter ); infoText = TextView( this ); my $quit = PushButton( "quit" , this ); - this->connect( httpd, TQT_SIGNAL 'newConnect()', TQT_SLOT 'newConnect()' ); - this->connect( httpd, TQT_SIGNAL 'endConnect()', TQT_SLOT 'endConnect()' ); - this->connect( httpd, TQT_SIGNAL 'wroteToClient()', TQT_SLOT 'wroteToClient()' ); - this->connect( $quit, TQT_SIGNAL 'pressed()', TQt::app(), TQT_SLOT 'quit()' ); + this->connect( httpd, TQ_SIGNAL 'newConnect()', TQ_SLOT 'newConnect()' ); + this->connect( httpd, TQ_SIGNAL 'endConnect()', TQ_SLOT 'endConnect()' ); + this->connect( httpd, TQ_SIGNAL 'wroteToClient()', TQ_SLOT 'wroteToClient()' ); + this->connect( $quit, TQ_SIGNAL 'pressed()', TQt::app(), TQ_SLOT 'quit()' ); } sub newConnect -- cgit v1.2.3