From d3656a49e67074e23e8df5daef0f585199b0a8da Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 14 Jan 2024 13:10:18 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit b0c86264e0cd10a0d3a47de3b05be453d9417bcd) --- kbugbuster/backend/mailsender.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kbugbuster/backend/mailsender.cpp') diff --git a/kbugbuster/backend/mailsender.cpp b/kbugbuster/backend/mailsender.cpp index 2d05d759..00d2d0f8 100644 --- a/kbugbuster/backend/mailsender.cpp +++ b/kbugbuster/backend/mailsender.cpp @@ -78,7 +78,7 @@ bool MailSender::send(const TQString &fromName,const TQString &fromEmail,const T if (!fd) { kdError() << "Unable to open a pipe to " << command << endl; - TQTimer::singleShot( 0, this, TQT_SLOT( deleteLater() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( deleteLater() ) ); return false; } @@ -103,13 +103,13 @@ bool MailSender::send(const TQString &fromName,const TQString &fromEmail,const T if (!kapp->dcopClient()->isApplicationRegistered("kmail")) { KMessageBox::error(0,i18n("No running instance of KMail found.")); - TQTimer::singleShot( 0, this, TQT_SLOT( deleteLater() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( deleteLater() ) ); return false; } emit status( i18n( "Passing mail to TDE email program..." ) ); if (!kMailOpenComposer(to,"", (bcc ? from : ""), subject,body,0,KURL())) { - TQTimer::singleShot( 0, this, TQT_SLOT( deleteLater() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( deleteLater() ) ); return false; } } else if ( m_client == Direct ) { @@ -128,12 +128,12 @@ bool MailSender::send(const TQString &fromName,const TQString &fromEmail,const T TQString::fromLatin1( "\n\n" ) + body; Smtp *smtp = new Smtp( fromEmail, recipients, message, m_smtpServer ); - connect( smtp, TQT_SIGNAL( status( const TQString & ) ), - this, TQT_SIGNAL( status( const TQString & ) ) ); - connect( smtp, TQT_SIGNAL( success() ), - this, TQT_SLOT( smtpSuccess() ) ); - connect( smtp, TQT_SIGNAL( error( const TQString &, const TQString & ) ), - this, TQT_SLOT( smtpError( const TQString &, const TQString & ) ) ); + connect( smtp, TQ_SIGNAL( status( const TQString & ) ), + this, TQ_SIGNAL( status( const TQString & ) ) ); + connect( smtp, TQ_SIGNAL( success() ), + this, TQ_SLOT( smtpSuccess() ) ); + connect( smtp, TQ_SIGNAL( error( const TQString &, const TQString & ) ), + this, TQ_SLOT( smtpError( const TQString &, const TQString & ) ) ); smtp->insertChild( this ); // die when smtp dies } else { @@ -143,7 +143,7 @@ bool MailSender::send(const TQString &fromName,const TQString &fromEmail,const T if (m_client != Direct) { emit finished(); - TQTimer::singleShot( 0, this, TQT_SLOT( deleteLater() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( deleteLater() ) ); } return true; @@ -176,7 +176,7 @@ void MailSender::smtpError(const TQString &_command, const TQString &_response) "response: %2" ).arg( command ).arg( response ) ); emit finished(); - TQTimer::singleShot( 0, this, TQT_SLOT( deleteLater() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( deleteLater() ) ); } int MailSender::kMailOpenComposer(const TQString& arg0,const TQString& arg1, -- cgit v1.2.1