Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2ceb4caa0b)
r14.1.x
Michele Calgaro 1 year ago
parent 80e5cf10ad
commit 3c1e2ceb3a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -571,12 +571,12 @@ bool IdentityPreferences::eventFilter(TQObject *o, TQEvent *e)
TQString mail=url.path(); TQString mail=url.path();
bool handled=false; bool handled=false;
if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_mailEdit)) if(o == _mailEdit)
{ {
handled=true; handled=true;
_mailEdit->setText(mail); _mailEdit->setText(mail);
} }
else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_listEdit)) else if(o == _listEdit)
{ {
handled=true; handled=true;
_listEdit->setText(mail); _listEdit->setText(mail);

@ -261,7 +261,7 @@ bool DictChooser::eventFilter(TQObject *object, TQEvent *event)
{ {
if(event->type() == TQEvent::FocusIn) if(event->type() == TQEvent::FocusIn)
{ {
if(TQT_BASE_OBJECT(object)==TQT_BASE_OBJECT(selectedBox)) if(object==selectedBox)
{ {
int i = selectedBox->currentItem(); int i = selectedBox->currentItem();
selectedBox->setSelected(i,true); selectedBox->setSelected(i,true);

@ -1534,7 +1534,7 @@ void KBabelDictBox::configure(const TQString& id, bool modal)
void KBabelDictBox::destroyConfigDialog() void KBabelDictBox::destroyConfigDialog()
{ {
const TQObject *obj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *obj = sender();
if(obj && obj->inherits("KDialogBase")) if(obj && obj->inherits("KDialogBase"))
{ {
KDialogBase *dialog = (KDialogBase*)obj; KDialogBase *dialog = (KDialogBase*)obj;
@ -1616,7 +1616,7 @@ bool KBabelDictBox::eventFilter(TQObject *o, TQEvent *e)
return true; return true;
} }
} }
else if(e->type() == TQEvent::Resize && TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(resultListView)) else if(e->type() == TQEvent::Resize && o == resultListView)
{ {
if(resultListView->height() < 2) if(resultListView->height() < 2)
{ {

@ -1204,7 +1204,7 @@ void PoCompendium::registerData()
void PoCompendium::removeData() void PoCompendium::removeData()
{ {
const TQObject *s=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s=sender();
if(s && s->inherits("CompendiumData")) if(s && s->inherits("CompendiumData"))
{ {
const CompendiumData *d=static_cast<const CompendiumData*>(s); const CompendiumData *d=static_cast<const CompendiumData*>(s);

@ -965,7 +965,7 @@ void TmxCompendium::registerData()
void TmxCompendium::removeData() void TmxCompendium::removeData()
{ {
const TQObject *s=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s=sender();
if(s && s->inherits("TmxCompendiumData")) if(s && s->inherits("TmxCompendiumData"))
{ {
const TmxCompendiumData *d=static_cast<const TmxCompendiumData*>(s); const TmxCompendiumData *d=static_cast<const TmxCompendiumData*>(s);

@ -633,7 +633,7 @@ void KompareModelList::slotSelectionChanged( const Diff2::DiffModel* model, cons
// This method will signal all the other objects about a change in selection, // This method will signal all the other objects about a change in selection,
// it will emit setSelection( const DiffModel*, const Difference* ) to all who are connected // it will emit setSelection( const DiffModel*, const Difference* ) to all who are connected
kdDebug(8101) << "KompareModelList::slotSelectionChanged( " << model << ", " << diff << " )" << endl; kdDebug(8101) << "KompareModelList::slotSelectionChanged( " << model << ", " << diff << " )" << endl;
kdDebug(8101) << "Sender is : " << TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->className() << endl; kdDebug(8101) << "Sender is : " << sender()->className() << endl;
// kdDebug(8101) << kdBacktrace() << endl; // kdDebug(8101) << kdBacktrace() << endl;
m_selectedModel = const_cast<DiffModel*>(model); m_selectedModel = const_cast<DiffModel*>(model);
@ -668,7 +668,7 @@ void KompareModelList::slotSelectionChanged( const Diff2::Difference* diff )
// This method will emit setSelection( const Difference* ) to whomever is listening // This method will emit setSelection( const Difference* ) to whomever is listening
// when for instance in kompareview the selection has changed // when for instance in kompareview the selection has changed
kdDebug(8101) << "KompareModelList::slotSelectionChanged( " << diff << " )" << endl; kdDebug(8101) << "KompareModelList::slotSelectionChanged( " << diff << " )" << endl;
kdDebug(8101) << "Sender is : " << TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->className() << endl; kdDebug(8101) << "Sender is : " << sender()->className() << endl;
m_selectedDifference = const_cast<Difference*>(diff); m_selectedDifference = const_cast<Difference*>(diff);

@ -2629,7 +2629,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat
button->repaint( false ); button->repaint( false );
} }
else if ( (event->type() == TQEvent::Leave) && else if ( (event->type() == TQEvent::Leave) &&
(TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(hoverWidget)) ) { (object == hoverWidget) ) {
hoverWidget = 0L; hoverWidget = 0L;
button->repaint( false ); button->repaint( false );
} }

@ -1469,7 +1469,7 @@ void TopLevel::setTraceItemDelayed(TraceItem* i)
// no need to select same item a 2nd time... // no need to select same item a 2nd time...
if (_traceItemDelayed == i) return; if (_traceItemDelayed == i) return;
_traceItemDelayed = i; _traceItemDelayed = i;
_lastSender = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())); _lastSender = sender();
kdDebug() << "Selected " << (i ? i->prettyName() : "(none)") << endl; kdDebug() << "Selected " << (i ? i->prettyName() : "(none)") << endl;

@ -70,7 +70,7 @@ CPPCodeGenerationForm::~CPPCodeGenerationForm()
void CPPCodeGenerationForm::browseClicked() void CPPCodeGenerationForm::browseClicked()
{ {
TQString button = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); TQString button = sender()->name();
TQString file = KFileDialog::getOpenFileName( TQString(), "*.h", this, "Get Header File"); TQString file = KFileDialog::getOpenFileName( TQString(), "*.h", this, "Get Header File");
if(file.isEmpty()) if(file.isEmpty())

@ -171,7 +171,7 @@ void CodeGenerationOptionsPage::setDefaults() {
void CodeGenerationOptionsPage::browseClicked() { void CodeGenerationOptionsPage::browseClicked() {
TQString button = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); TQString button = sender()->name();
TQString dir = KFileDialog::getExistingDirectory(); TQString dir = KFileDialog::getExistingDirectory();
if(dir.isEmpty()) if(dir.isEmpty())
return; return;

@ -213,7 +213,7 @@ void KPlayerSliderAction::unplug (TQWidget* widget)
//Q_ASSERT (isPlugged()); //Q_ASSERT (isPlugged());
//Q_ASSERT (widget -> inherits ("TDEToolBar")); //Q_ASSERT (widget -> inherits ("TDEToolBar"));
KWidgetAction::unplug (widget); KWidgetAction::unplug (widget);
if ( ! slider() || ! isPlugged() || TQT_BASE_OBJECT(widget) != TQT_BASE_OBJECT(slider() -> parent()) ) if ( ! slider() || ! isPlugged() || widget != slider() -> parent() )
return; return;
//TDEToolBar* toolbar = (TDEToolBar*) widget; //TDEToolBar* toolbar = (TDEToolBar*) widget;
disconnect (widget, TQT_SIGNAL (orientationChanged (Qt::Orientation)), this, TQT_SLOT (orientationChanged (Qt::Orientation))); disconnect (widget, TQT_SIGNAL (orientationChanged (Qt::Orientation)), this, TQT_SLOT (orientationChanged (Qt::Orientation)));

Loading…
Cancel
Save