diff options
Diffstat (limited to 'knotes')
-rw-r--r-- | knotes/knote.cpp | 6 | ||||
-rw-r--r-- | knotes/knotesapp.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp index 2a78d7189..b73ce29ef 100644 --- a/knotes/knote.cpp +++ b/knotes/knote.cpp @@ -1339,7 +1339,7 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev ) return true; } - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_label) ) + if ( o == m_label ) { TQMouseEvent *e = (TQMouseEvent *)ev; @@ -1379,7 +1379,7 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev ) return false; } - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editor) ) { + if ( o == m_editor ) { if ( ev->type() == TQEvent::FocusOut ) { TQFocusEvent *fe = TQT_TQFOCUSEVENT(ev); if ( fe->reason() != TQFocusEvent::Popup && @@ -1398,7 +1398,7 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev ) return false; } - if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editor->viewport()) ) + if ( o == m_editor->viewport() ) { if ( m_edit_menu && ev->type() == TQEvent::MouseButtonPress && diff --git a/knotes/knotesapp.cpp b/knotes/knotesapp.cpp index 4590e704b..9ad877ffe 100644 --- a/knotes/knotesapp.cpp +++ b/knotes/knotesapp.cpp @@ -509,7 +509,7 @@ void KNotesApp::mousePressEvent( TQMouseEvent* e ) void KNotesApp::slotShowNote() { // tell the WM to give this note focus - showNote( TQString::fromUtf8( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() ) ); + showNote( TQString::fromUtf8( sender()->name() ) ); } void KNotesApp::slotWalkThroughNotes() |