diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:47:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-17 20:13:00 +0900 |
commit | 9795d15cda9fa26bfbd90321f774014537f9675b (patch) | |
tree | bf8891490cdfee593c7e28db0fbae55e68b162e4 /kopete/protocols | |
parent | e1feb0d70ede96e4407bb091220561b099dc781f (diff) | |
download | tdenetwork-9795d15cda9fa26bfbd90321f774014537f9675b.tar.gz tdenetwork-9795d15cda9fa26bfbd90321f774014537f9675b.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6148e60759606fe8c1d7037956a38b9a4427e8b2)
Diffstat (limited to 'kopete/protocols')
-rw-r--r-- | kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp | 2 | ||||
-rw-r--r-- | kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp | 2 | ||||
-rw-r--r-- | kopete/protocols/oscar/liboscar/client.cpp | 6 |
3 files changed, 4 insertions, 6 deletions
diff --git a/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp b/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp index 57dca0c0..44b10bbc 100644 --- a/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp +++ b/kopete/protocols/meanwhile/meanwhileaddcontactpage.cpp @@ -37,7 +37,7 @@ MeanwhileAddContactPage::MeanwhileAddContactPage( static_cast<MeanwhileAccount *>(_account); if (account->infoPlugin->canProvideMeanwhileId()) { - TQT_BASE_OBJECT_NAME::connect(theDialog->btnFindUser, TQT_SIGNAL(clicked()), + TQObject::connect(theDialog->btnFindUser, TQT_SIGNAL(clicked()), TQT_SLOT(slotFindUser())); } else diff --git a/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp b/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp index 77955782..4e2c90ee 100644 --- a/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp +++ b/kopete/protocols/meanwhile/meanwhileeditaccountwidget.cpp @@ -106,7 +106,7 @@ MeanwhileEditAccountWidget::MeanwhileEditAccountWidget( slotSetServer2Default(); } - TQT_BASE_OBJECT_NAME::connect(btnServerDefaults, TQT_SIGNAL(clicked()), + TQObject::connect(btnServerDefaults, TQT_SIGNAL(clicked()), TQT_SLOT(slotSetServer2Default())); show(); diff --git a/kopete/protocols/oscar/liboscar/client.cpp b/kopete/protocols/oscar/liboscar/client.cpp index a500028a..10fec375 100644 --- a/kopete/protocols/oscar/liboscar/client.cpp +++ b/kopete/protocols/oscar/liboscar/client.cpp @@ -1127,8 +1127,7 @@ void Client::requestServerRedirect( WORD family, WORD exchange, void Client::haveServerForRedirect( const TQString& host, const TQByteArray& cookie, WORD ) { //nasty sender() usage to get the task with chat room info - TQObject* o = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )); - ServerRedirectTask* srt = dynamic_cast<ServerRedirectTask*>( o ); + ServerRedirectTask* srt = dynamic_cast<ServerRedirectTask*>( const_cast<TQObject*>(sender()) ); //create a new connection and set it up int colonPos = host.find(':'); @@ -1248,8 +1247,7 @@ void Client::determineDisconnection( int code, const TQString& string ) return; //yay for the sender() hack! - TQObject* obj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )); - Connection* c = dynamic_cast<Connection*>( obj ); + Connection* c = dynamic_cast<Connection*>( const_cast<TQObject*>(sender()) ); if ( !c ) return; |