summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexiviewbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/core/kexiviewbase.cpp')
-rw-r--r--kexi/core/kexiviewbase.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kexi/core/kexiviewbase.cpp b/kexi/core/kexiviewbase.cpp
index e89f4a4e..45df1b0d 100644
--- a/kexi/core/kexiviewbase.cpp
+++ b/kexi/core/kexiviewbase.cpp
@@ -214,26 +214,26 @@ bool KexiViewBase::eventFilter( TQObject *o, TQEvent *e )
{
if (e->type()==TQEvent::FocusIn || e->type()==TQEvent::FocusOut) {// && o->inherits(TQWIDGET_OBJECT_NAME_STRING)) {
// //hp==true if currently focused widget is a child of this table view
-// const bool hp = Kexi::hasParent( static_cast<TQWidget*>(o), tqfocusWidget());
+// const bool hp = Kexi::hasParent( static_cast<TQWidget*>(o), focusWidget());
// kexidbg << "KexiViewBase::eventFilter(): " << o->name() << " " << e->type() << endl;
if (KexiUtils::hasParent( TQT_TQOBJECT(this), TQT_TQOBJECT(o))) {
- if (e->type()==TQEvent::FocusOut && tqfocusWidget() && !KexiUtils::hasParent( TQT_TQOBJECT(this), TQT_TQOBJECT(tqfocusWidget()))) {
+ if (e->type()==TQEvent::FocusOut && focusWidget() && !KexiUtils::hasParent( TQT_TQOBJECT(this), TQT_TQOBJECT(focusWidget()))) {
//focus out: when currently focused widget is not a parent of this view
emit focus(false);
} else if (e->type()==TQEvent::FocusIn) {
emit focus(true);
}
- if (e->type()==TQEvent::FocusOut) { // && tqfocusWidget() && Kexi::hasParent( this, tqfocusWidget())) { // && tqfocusWidget()->inherits("KexiViewBase")) {
-// kdDebug() << tqfocusWidget()->className() << " " << tqfocusWidget()->name()<< endl;
+ if (e->type()==TQEvent::FocusOut) { // && focusWidget() && Kexi::hasParent( this, focusWidget())) { // && focusWidget()->inherits("KexiViewBase")) {
+// kdDebug() << focusWidget()->className() << " " << focusWidget()->name()<< endl;
// kdDebug() << o->className() << " " << o->name()<< endl;
KexiViewBase *v = KexiUtils::findParent<KexiViewBase>(o, "KexiViewBase") ;
-// TQWidget *www=v->tqfocusWidget();
+// TQWidget *www=v->focusWidget();
if (v) {
while (v->m_parentView)
v = v->m_parentView;
- if (KexiUtils::hasParent( TQT_TQOBJECT(this), TQT_TQOBJECT(v->tqfocusWidget()) ))
- v->m_lastFocusedChildBeforeFocusOut = static_cast<TQWidget*>(v->tqfocusWidget());
-// v->m_lastFocusedChildBeforeFocusOut = static_cast<TQWidget*>(o); //tqfocusWidget();
+ if (KexiUtils::hasParent( TQT_TQOBJECT(this), TQT_TQOBJECT(v->focusWidget()) ))
+ v->m_lastFocusedChildBeforeFocusOut = static_cast<TQWidget*>(v->focusWidget());
+// v->m_lastFocusedChildBeforeFocusOut = static_cast<TQWidget*>(o); //focusWidget();
}
}