Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/53/head
Michele Calgaro 9 months ago
parent 214a5ef176
commit 6148e60759
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -424,7 +424,7 @@ void ShareDlgImpl::accessModifierBtnClicked()
} }
TQString name = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); TQString name = sender()->name();
TQLineEdit *edit = 0L; TQLineEdit *edit = 0L;

@ -521,7 +521,7 @@ void TopLevel::buildHistMenu()
// process a query via the history menu // process a query via the history menu
void TopLevel::queryHistMenu() void TopLevel::queryHistMenu()
{ {
TQCString name = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); TQCString name = sender()->name();
if (!name.isEmpty()) if (!name.isEmpty())
define(TQString::fromUtf8(name)); define(TQString::fromUtf8(name));
} }
@ -557,7 +557,7 @@ void TopLevel::stratDbChanged()
void TopLevel::dbInfoMenuClicked() void TopLevel::dbInfoMenuClicked()
{ {
TQCString name = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); TQCString name = sender()->name();
if (!name.isEmpty()) if (!name.isEmpty())
interface->showDbInfo(name); interface->showDbInfo(name);
} }

@ -1676,7 +1676,7 @@ void KopeteContactListView::slotAddContact()
Kopete::ContactList::self()->selectedMetaContacts().first(); Kopete::ContactList::self()->selectedMetaContacts().first();
Kopete::Group *group = Kopete::Group *group =
Kopete::ContactList::self()->selectedGroups().first(); Kopete::ContactList::self()->selectedGroups().first();
Kopete::Account *account = dynamic_cast<Kopete::Account*>( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->parent() ); Kopete::Account *account = dynamic_cast<Kopete::Account*>( sender()->parent() );
if ( ( metacontact && metacontact->isTemporary() ) || if ( ( metacontact && metacontact->isTemporary() ) ||
(group && group->type()!=Kopete::Group::Normal ) ) (group && group->type()!=Kopete::Group::Normal ) )

@ -968,8 +968,7 @@ void KopeteWindow::setStatusMessage( const TQString & message )
void KopeteWindow::slotBuildStatusMessageMenu() void KopeteWindow::slotBuildStatusMessageMenu()
{ {
TQObject * senderObj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )); m_globalStatusMessageMenu = static_cast<TDEPopupMenu *>( const_cast<TQObject*>(sender()) );
m_globalStatusMessageMenu = static_cast<TDEPopupMenu *>( TQT_TQWIDGET(senderObj) );
m_globalStatusMessageMenu->clear(); m_globalStatusMessageMenu->clear();
// pop up a menu containing the away messages, and a lineedit // pop up a menu containing the away messages, and a lineedit
// see kopeteaway // see kopeteaway

@ -215,7 +215,7 @@ void PluginManager::slotPluginReadyForUnload()
// less clean for plugin authors // less clean for plugin authors
// FIXME: I don't buy the above argument. Add a Kopete::Plugin::emitReadyForUnload(void), // FIXME: I don't buy the above argument. Add a Kopete::Plugin::emitReadyForUnload(void),
// and make readyForUnload be passed a plugin. - Richard // and make readyForUnload be passed a plugin. - Richard
Plugin *plugin = dynamic_cast<Plugin *>( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() ) ) ); Plugin *plugin = dynamic_cast<Plugin *>( const_cast<TQObject*>( sender() ) );
kdDebug( 14010 ) << k_funcinfo << plugin->pluginId() << "ready for unload" << endl; kdDebug( 14010 ) << k_funcinfo << plugin->pluginId() << "ready for unload" << endl;
if ( !plugin ) if ( !plugin )
{ {

@ -37,7 +37,7 @@ MeanwhileAddContactPage::MeanwhileAddContactPage(
static_cast<MeanwhileAccount *>(_account); static_cast<MeanwhileAccount *>(_account);
if (account->infoPlugin->canProvideMeanwhileId()) if (account->infoPlugin->canProvideMeanwhileId())
{ {
TQT_BASE_OBJECT_NAME::connect(theDialog->btnFindUser, TQT_SIGNAL(clicked()), TQObject::connect(theDialog->btnFindUser, TQT_SIGNAL(clicked()),
TQT_SLOT(slotFindUser())); TQT_SLOT(slotFindUser()));
} }
else else

@ -106,7 +106,7 @@ MeanwhileEditAccountWidget::MeanwhileEditAccountWidget(
slotSetServer2Default(); slotSetServer2Default();
} }
TQT_BASE_OBJECT_NAME::connect(btnServerDefaults, TQT_SIGNAL(clicked()), TQObject::connect(btnServerDefaults, TQT_SIGNAL(clicked()),
TQT_SLOT(slotSetServer2Default())); TQT_SLOT(slotSetServer2Default()));
show(); show();

@ -1127,8 +1127,7 @@ void Client::requestServerRedirect( WORD family, WORD exchange,
void Client::haveServerForRedirect( const TQString& host, const TQByteArray& cookie, WORD ) void Client::haveServerForRedirect( const TQString& host, const TQByteArray& cookie, WORD )
{ {
//nasty sender() usage to get the task with chat room info //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*>( const_cast<TQObject*>(sender()) );
ServerRedirectTask* srt = dynamic_cast<ServerRedirectTask*>( o );
//create a new connection and set it up //create a new connection and set it up
int colonPos = host.find(':'); int colonPos = host.find(':');
@ -1248,8 +1247,7 @@ void Client::determineDisconnection( int code, const TQString& string )
return; return;
//yay for the sender() hack! //yay for the sender() hack!
TQObject* obj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )); Connection* c = dynamic_cast<Connection*>( const_cast<TQObject*>(sender()) );
Connection* c = dynamic_cast<Connection*>( obj );
if ( !c ) if ( !c )
return; return;

@ -367,7 +367,7 @@ bool KPPPWidget::eventFilter(TQObject *o, TQEvent *e) {
return true; return true;
} }
if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(connect_b)) { if(o == connect_b) {
if(e->type() == TQEvent::KeyPress) { if(e->type() == TQEvent::KeyPress) {
if(connect_b->hasFocus() && ((TQKeyEvent *)e)->key() == TQt::Key_Return) { if(connect_b->hasFocus() && ((TQKeyEvent *)e)->key() == TQt::Key_Return) {
beginConnect(); beginConnect();

@ -735,7 +735,7 @@ bool KRDC::event(TQEvent *e) {
bool KRDC::eventFilter(TQObject *watched, TQEvent *e) { bool KRDC::eventFilter(TQObject *watched, TQEvent *e) {
/* used to get events from TQScrollView on resize for scale mode*/ /* used to get events from TQScrollView on resize for scale mode*/
if (TQT_BASE_OBJECT(watched) != TQT_BASE_OBJECT(m_scrollView)) if (watched != m_scrollView)
return false; return false;
if (e->type() != TQEvent::Resize) if (e->type() != TQEvent::Resize)
return false; return false;

@ -362,7 +362,7 @@ void aHistLineEdit::mousePressEvent ( TQMouseEvent *e )
#endif #endif
bool aHistLineEdit::eventFilter( TQObject *o, TQEvent *e ) bool aHistLineEdit::eventFilter( TQObject *o, TQEvent *e )
{ {
if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) && e->type() == TQEvent::AccelOverride ) if ( o == this && e->type() == TQEvent::AccelOverride )
if(processKeyEvent( TQT_TQKEYEVENT( e ) ) == true) if(processKeyEvent( TQT_TQKEYEVENT( e ) ) == true)
return true; return true;

@ -207,7 +207,7 @@ void MDITopLevel::slotMarkPageDirty( bool addressed )
{ {
// This is called when a line appeared in this channel. // This is called when a line appeared in this channel.
// addressed is true if it was addressed to the user // addressed is true if it was addressed to the user
TDEMainWindow *window = dynamic_cast<TDEMainWindow *>( TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME *>( sender() )) ); TDEMainWindow *window = dynamic_cast<TDEMainWindow *>( const_cast<TQObject*>( sender() ) );
if ( !window ) if ( !window )
return; return;
@ -225,7 +225,7 @@ void MDITopLevel::slotMarkPageDirty( bool addressed )
void MDITopLevel::slotChangeChannelName( const TQString &, const TQString &channelName ) void MDITopLevel::slotChangeChannelName( const TQString &, const TQString &channelName )
{ {
TDEMainWindow *window = dynamic_cast<TDEMainWindow *>( TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME *>( sender() )) ); TDEMainWindow *window = dynamic_cast<TDEMainWindow *>( const_cast<TQObject*>( sender() ) );
if ( !window ) if ( !window )
return; return;

Loading…
Cancel
Save