diff options
Diffstat (limited to 'kexi/plugins/forms/widgets/kexidbform.cpp')
-rw-r--r-- | kexi/plugins/forms/widgets/kexidbform.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kexi/plugins/forms/widgets/kexidbform.cpp b/kexi/plugins/forms/widgets/kexidbform.cpp index 0fb4519e..81ce6684 100644 --- a/kexi/plugins/forms/widgets/kexidbform.cpp +++ b/kexi/plugins/forms/widgets/kexidbform.cpp @@ -394,7 +394,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e ) kexipluginsdbg << "RESIZE" << endl; if (e->type()==TQEvent::KeyPress) { if (preview()) { - TQKeyEvent *ke = TQT_TQKEYEVENT(e); + TQKeyEvent *ke = static_cast<TQKeyEvent*>(e); const int key = ke->key(); bool tab = ke->state() == TQt::NoButton && key == TQt::Key_Tab; bool backtab = ((ke->state() == TQt::NoButton || ke->state() == TQt::ShiftButton) && key == TQt::Key_Backtab) @@ -569,7 +569,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e ) } else if (e->type()==TQEvent::FocusIn) { bool focusDataWidget = preview(); - if (TQT_TQFOCUSEVENT(e)->reason()==TQFocusEvent::Popup) { + if (static_cast<TQFocusEvent*>(e)->reason()==TQFocusEvent::Popup) { kdDebug() << "->>> focus IN, popup" <<endl; focusDataWidget = !d->popupFocused; d->popupFocused = false; @@ -608,7 +608,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e ) } } else if (e->type()==TQEvent::FocusOut) { - if (TQT_TQFOCUSEVENT(e)->reason()==TQFocusEvent::Popup) { + if (static_cast<TQFocusEvent*>(e)->reason()==TQFocusEvent::Popup) { //d->widgetFocusedBeforePopup = (TQWidget*)watched; d->popupFocused = true; } @@ -616,7 +616,7 @@ bool KexiDBForm::eventFilter( TQObject * watched, TQEvent * e ) d->popupFocused = false; // d->widgetFocusedBeforePopup = 0; // kdDebug() << "e->type()==TQEvent::FocusOut " << watched->className() << " " <<watched->name() << endl; -// UNSET_FOCUS_USING_REASON(watched, TQT_TQFOCUSEVENT(e)->reason()); +// UNSET_FOCUS_USING_REASON(watched, static_cast<TQFocusEvent*>(e)->reason()); } return KexiDBFormBase::eventFilter(watched, e); } |