Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/21/head
Michele Calgaro 9 months ago
parent bfbab5a5ea
commit 6c1a3b2f45
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -127,11 +127,11 @@ void SelectConfiguration::gameOption(TQString title, TQString type, TQString val
void SelectConfiguration::changeOption() void SelectConfiguration::changeOption()
{ {
ConfigOption *configOption = m_configMap[(TQObject *)TQT_BASE_OBJECT_NAME::sender()]; ConfigOption *configOption = m_configMap[(TQObject *)TQObject::sender()];
if (configOption) if (configOption)
{ {
kdDebug() << "checked " << ((TQCheckBox *)TQT_BASE_OBJECT_NAME::sender())->isChecked() << endl; kdDebug() << "checked " << ((TQCheckBox *)TQObject::sender())->isChecked() << endl;
emit changeOption( configOption->id(), TQString::number( ((TQCheckBox *)TQT_BASE_OBJECT_NAME::sender())->isChecked() ) ); emit changeOption( configOption->id(), TQString::number( ((TQCheckBox *)TQObject::sender())->isChecked() ) );
} }
} }
@ -148,7 +148,7 @@ void SelectConfiguration::optionChanged(ConfigOption *configOption)
void SelectConfiguration::optionChanged() void SelectConfiguration::optionChanged()
{ {
TQString command = m_optionCommandMap[(TQObject *)TQT_BASE_OBJECT_NAME::sender()]; TQString command = m_optionCommandMap[(TQObject *)TQObject::sender()];
if (TQCheckBox *checkBox = m_checkBoxMap[command]) if (TQCheckBox *checkBox = m_checkBoxMap[command])
{ {

@ -321,7 +321,7 @@ void EstateDetails::clearButtons()
void EstateDetails::buttonPressed() void EstateDetails::buttonPressed()
{ {
emit buttonCommand(TQString(m_buttonCommandMap[(TQObject *)TQT_BASE_OBJECT_NAME::sender()])); emit buttonCommand(TQString(m_buttonCommandMap[(TQObject *)TQObject::sender()]));
} }
#include "estatedetails.moc" #include "estatedetails.moc"

@ -44,7 +44,7 @@ void KBattleshipClient::init()
} }
m_readNotifier = new TQSocketNotifier(fd(), TQSocketNotifier::Read, TQT_TQOBJECT(this)); m_readNotifier = new TQSocketNotifier(fd(), TQSocketNotifier::Read, TQT_TQOBJECT(this));
TQT_BASE_OBJECT_NAME::connect(m_readNotifier, TQT_SIGNAL(activated(int)), TQT_SLOT(slotReadData())); TQObject::connect(m_readNotifier, TQT_SIGNAL(activated(int)), TQT_SLOT(slotReadData()));
emit sigConnected(); emit sigConnected();
} }

@ -50,7 +50,7 @@ void KBattleshipServer::init()
m_service.setPort(m_port); m_service.setPort(m_port);
m_service.publishAsync(); m_service.publishAsync();
m_connectNotifier = new TQSocketNotifier(fd(), TQSocketNotifier::Read, TQT_TQOBJECT(this)); m_connectNotifier = new TQSocketNotifier(fd(), TQSocketNotifier::Read, TQT_TQOBJECT(this));
TQT_BASE_OBJECT_NAME::connect(m_connectNotifier, TQT_SIGNAL(activated(int)), TQT_SLOT(slotNewConnection())); TQObject::connect(m_connectNotifier, TQT_SIGNAL(activated(int)), TQT_SLOT(slotNewConnection()));
} }
void KBattleshipServer::slotNewConnection() void KBattleshipServer::slotNewConnection()

@ -61,7 +61,7 @@ void KChatWidget::slotReceivedMessage(const TQString &nickname, const TQString &
bool KChatWidget::eventFilter(TQObject *obj, TQEvent *e) bool KChatWidget::eventFilter(TQObject *obj, TQEvent *e)
{ {
if(TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(commentEdit) && e->type() == TQEvent::Wheel) if(obj == commentEdit && e->type() == TQEvent::Wheel)
{ {
kapp->notify(TQT_TQOBJECT(chatView), e); kapp->notify(TQT_TQOBJECT(chatView), e);
return true; return true;

@ -34,12 +34,12 @@ void MyTopLevelWidget::initGameWidgets( ){
playfield->setFocusPolicy(TQ_StrongFocus); playfield->setFocusPolicy(TQ_StrongFocus);
playfield->setFocus(); playfield->setFocus();
TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(energy(int,int)), TQObject::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(energy(int,int)),
TQT_SLOT(energy(int,int))); TQT_SLOT(energy(int,int)));
TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(hitPoints(int,int)), TQObject::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(hitPoints(int,int)),
TQT_SLOT(hitPoints(int,int))); TQT_SLOT(hitPoints(int,int)));
TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(wins(int,int)),TQT_SLOT(wins(int,int))); TQObject::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(wins(int,int)),TQT_SLOT(wins(int,int)));
TQT_BASE_OBJECT_NAME::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(setStatusText(const TQString &,int)), TQObject::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(setStatusText(const TQString &,int)),
TQT_SLOT(setStatusText(const TQString &,int))); TQT_SLOT(setStatusText(const TQString &,int)));
setCentralWidget(w); setCentralWidget(w);

Loading…
Cancel
Save