diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-12 11:31:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-13 10:03:28 +0900 |
commit | c56e9aa280a5c584f6fa229432efdad836044590 (patch) | |
tree | 7583173c146ac75bc2706c985bf51f0caf02a349 /knode | |
parent | eec76c7b52e7810bf67e2fc79c69a5d4f7e876b0 (diff) | |
download | tdepim-c56e9aa280a5c584f6fa229432efdad836044590.tar.gz tdepim-c56e9aa280a5c584f6fa229432efdad836044590.zip |
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 30555507108fe0b2b3f9ded9de37f38d4a1d9c50)
Diffstat (limited to 'knode')
-rw-r--r-- | knode/headerview.cpp | 2 | ||||
-rw-r--r-- | knode/kncollectionview.cpp | 2 | ||||
-rw-r--r-- | knode/kncomposer.cpp | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/knode/headerview.cpp b/knode/headerview.cpp index 06210b2a5..fbc34c38f 100644 --- a/knode/headerview.cpp +++ b/knode/headerview.cpp @@ -549,7 +549,7 @@ bool KNHeaderView::eventFilter(TQObject *o, TQEvent *e) // right click on header if ( e->type() == TQEvent::MouseButtonPress && TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && - o->isA(TQHEADER_OBJECT_NAME_STRING) ) + o->isA("TQHeader") ) { mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() ); return true; diff --git a/knode/kncollectionview.cpp b/knode/kncollectionview.cpp index 8a02fed2e..0b51fd0bb 100644 --- a/knode/kncollectionview.cpp +++ b/knode/kncollectionview.cpp @@ -430,7 +430,7 @@ bool KNCollectionView::eventFilter(TQObject *o, TQEvent *e) // header popup menu if ( e->type() == TQEvent::MouseButtonPress && TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && - o->isA(TQHEADER_OBJECT_NAME_STRING) ) + o->isA("TQHeader") ) { mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() ); return true; diff --git a/knode/kncomposer.cpp b/knode/kncomposer.cpp index 8695048e6..a1d09317b 100644 --- a/knode/kncomposer.cpp +++ b/knode/kncomposer.cpp @@ -437,7 +437,7 @@ void KNComposer::slotUndo() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->undo(); - else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) + else if (fw->inherits("TQLineEdit")) ((TQLineEdit*)fw)->undo(); } @@ -448,7 +448,7 @@ void KNComposer::slotRedo() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->redo(); - else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) + else if (fw->inherits("TQLineEdit")) ((TQLineEdit*)fw)->redo(); } @@ -459,7 +459,7 @@ void KNComposer::slotCut() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->cut(); - else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) + else if (fw->inherits("TQLineEdit")) ((TQLineEdit*)fw)->cut(); else kdDebug(5003) << "wrong focus widget" << endl; } @@ -471,7 +471,7 @@ void KNComposer::slotCopy() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->copy(); - else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) + else if (fw->inherits("TQLineEdit")) ((TQLineEdit*)fw)->copy(); else kdDebug(5003) << "wrong focus widget" << endl; @@ -485,7 +485,7 @@ void KNComposer::slotPaste() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->paste(); - else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) + else if (fw->inherits("TQLineEdit")) ((TQLineEdit*)fw)->paste(); else kdDebug(5003) << "wrong focus widget" << endl; } @@ -495,9 +495,9 @@ void KNComposer::slotSelectAll() TQWidget* fw = focusWidget(); if (!fw) return; - if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) + if (fw->inherits("TQLineEdit")) ((TQLineEdit*)fw)->selectAll(); - else if (fw->inherits(TQMULTILINEEDIT_OBJECT_NAME_STRING)) + else if (fw->inherits("TQMultiLineEdit")) ((TQMultiLineEdit*)fw)->selectAll(); } |