diff options
Diffstat (limited to 'kbabel/kbabeldict/kbabeldictbox.cpp')
-rw-r--r-- | kbabel/kbabeldict/kbabeldictbox.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kbabel/kbabeldict/kbabeldictbox.cpp b/kbabel/kbabeldict/kbabeldictbox.cpp index 4f1a4f7f..bd2fbbcd 100644 --- a/kbabel/kbabeldict/kbabeldictbox.cpp +++ b/kbabel/kbabeldict/kbabeldictbox.cpp @@ -388,7 +388,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* tqparent, const char* name, WFlags fl ) if(factory) { - SearchEngine *e = (SearchEngine *)factory->create(this + SearchEngine *e = (SearchEngine *)factory->create(TQT_TQOBJECT(this) , "searchengine", "SearchEngine"); if(!e) { @@ -419,7 +419,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* tqparent, const char* name, WFlags fl ) if(factory) { - SearchEngine *e = (SearchEngine *)factory->create(this + SearchEngine *e = (SearchEngine *)factory->create(TQT_TQOBJECT(this) , "searchengine", "SearchEngine"); if(!e) { @@ -447,7 +447,7 @@ KBabelDictBox::KBabelDictBox( TQWidget* tqparent, const char* name, WFlags fl ) if(factory) { - SearchEngine *e = (SearchEngine *)factory->create(this + SearchEngine *e = (SearchEngine *)factory->create(TQT_TQOBJECT(this) , "searchengine", "SearchEngine"); if(!e) { @@ -1534,7 +1534,7 @@ void KBabelDictBox::configure(const TQString& id, bool modal) void KBabelDictBox::destroyConfigDialog() { - const TQObject *obj = sender(); + const TQObject *obj = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())); if(obj && obj->inherits("KDialogBase")) { KDialogBase *dialog = (KDialogBase*)obj; @@ -1609,14 +1609,14 @@ bool KBabelDictBox::eventFilter(TQObject *o, TQEvent *e) { if(e->type() == TQEvent::Wheel) { - TQWheelEvent *we = static_cast<TQWheelEvent*>(e); + TQWheelEvent *we = TQT_TQWHEELEVENT(e); if(we) { wheelEvent(we); return true; } } - else if(e->type() == TQEvent::Resize && o == resultListView) + else if(e->type() == TQEvent::Resize && TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(resultListView)) { if(resultListView->height() < 2) { @@ -1679,7 +1679,7 @@ void KBabelDictBox::editFile() DCOPClient *dcop = kapp->dcopClient(); QCStringList list = dcop->registeredApplications(); - int index = list.findIndex("kbabel"); + int index = list.tqfindIndex("kbabel"); if(index < 0) // if(!dcop->isApplicationRegistered("kbabel")); { |