diff options
Diffstat (limited to 'kmymoney2/widgets')
-rw-r--r-- | kmymoney2/widgets/kmymoneycompletion.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/widgets/register.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/widgets/kmymoneycompletion.cpp b/kmymoney2/widgets/kmymoneycompletion.cpp index 8a4b599..529ec7f 100644 --- a/kmymoney2/widgets/kmymoneycompletion.cpp +++ b/kmymoney2/widgets/kmymoneycompletion.cpp @@ -169,7 +169,7 @@ bool kMyMoneyCompletion::eventFilter(TQObject* o, TQEvent* e) KMyMoneyCombo *c = dynamic_cast<KMyMoneyCombo*>(m_parent); TQListViewItem* item; - if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_parent) || (c && TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(c->lineEdit()))) { + if(o == m_parent || (c && o == c->lineEdit())) { if(isVisible()) { if(type == TQEvent::KeyPress) { TQKeyEvent* ev = TQT_TQKEYEVENT (e); diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp index b52dff4..7fcb242 100644 --- a/kmymoney2/widgets/register.cpp +++ b/kmymoney2/widgets/register.cpp @@ -679,7 +679,7 @@ void Register::slotAutoColumnSizing(int section) bool Register::eventFilter(TQObject* o, TQEvent* e) { - if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) && e->type() == TQEvent::MouseButtonPress) { + if(o == horizontalHeader() && e->type() == TQEvent::MouseButtonPress) { TQMouseEvent *me = dynamic_cast<TQMouseEvent*>(e); if(me->button() == Qt::RightButton) { emit headerClicked(); @@ -687,13 +687,13 @@ bool Register::eventFilter(TQObject* o, TQEvent* e) // eat up left mouse button press for now return true; - } else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(horizontalHeader()) && e->type() == TQEvent::Paint) { + } else if(o == horizontalHeader() && e->type() == TQEvent::Paint) { // always show the header in bold (to suppress cell selection) TQFont f(horizontalHeader()->font()); f.setBold(true); horizontalHeader()->setFont(f); - } else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) && e->type() == TQEvent::KeyPress) { + } else if(o == this && e->type() == TQEvent::KeyPress) { TQKeyEvent* ke = dynamic_cast<TQKeyEvent*>(e); if(ke->key() == TQt::Key_Menu) { emit openContextMenu(); |