diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-24 07:08:32 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-24 07:08:32 +0000 |
commit | a21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8 (patch) | |
tree | 3359e2a90e87b53193c6ded445569016204e1c12 /knode | |
parent | 084c86a81820f17db9eee7362120586199008e27 (diff) | |
download | tdepim-a21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8.tar.gz tdepim-a21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8.zip |
Fix a number of runtime object identification problems which led to an even larger array of minor glitches
NOTE: kdevelop and kdewebdev still need to be fully repaired
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 0c2e06220..be497e6dc 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 && static_cast<TQMouseEvent*>(e)->button() == RightButton && - o->isA("TQHeader") ) + o->isA(TQHEADER_OBJECT_NAME_STRING) ) { mPopup->popup( static_cast<TQMouseEvent*>(e)->globalPos() ); return true; diff --git a/knode/kncollectionview.cpp b/knode/kncollectionview.cpp index 3bbb52377..40cce7741 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 && static_cast<TQMouseEvent*>(e)->button() == RightButton && - o->isA("TQHeader") ) + o->isA(TQHEADER_OBJECT_NAME_STRING) ) { mPopup->popup( static_cast<TQMouseEvent*>(e)->globalPos() ); return true; diff --git a/knode/kncomposer.cpp b/knode/kncomposer.cpp index 533ad3568..aabb8e669 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")) + else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) ((TQLineEdit*)fw)->undo(); } @@ -448,7 +448,7 @@ void KNComposer::slotRedo() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->redo(); - else if (fw->inherits("TQLineEdit")) + else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) ((TQLineEdit*)fw)->redo(); } @@ -459,7 +459,7 @@ void KNComposer::slotCut() if (fw->inherits("KEdit")) ((TQMultiLineEdit*)fw)->cut(); - else if (fw->inherits("TQLineEdit")) + else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) ((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")) + else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) ((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")) + else if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) ((TQLineEdit*)fw)->paste(); else kdDebug(5003) << "wrong focus widget" << endl; } @@ -495,9 +495,9 @@ void KNComposer::slotSelectAll() TQWidget* fw = tqfocusWidget(); if (!fw) return; - if (fw->inherits("TQLineEdit")) + if (fw->inherits(TQLINEEDIT_OBJECT_NAME_STRING)) ((TQLineEdit*)fw)->selectAll(); - else if (fw->inherits("TQMultiLineEdit")) + else if (fw->inherits(TQMULTILINEEDIT_OBJECT_NAME_STRING)) ((TQMultiLineEdit*)fw)->selectAll(); } |