diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:48:01 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-18 12:11:32 +0900 |
commit | ca120c61e6281a9f8b89be860a7e975b5384bd07 (patch) | |
tree | a904f22a6811c51d7b9f5e50ee53a1ebe4fed04b /knotes | |
parent | ddf896e8d22004797d141e221455cbdaa45b3f80 (diff) | |
download | tdepim-ca120c61e6281a9f8b89be860a7e975b5384bd07.tar.gz tdepim-ca120c61e6281a9f8b89be860a7e975b5384bd07.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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() |