From 09e466f879ed6e5b17980110eec2cc8db1b4f914 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:47:26 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro (cherry picked from commit 48b07a0ff120e8b4479bcac912d8a8f043e22ae4) --- kate/part/katecodecompletion.cpp | 6 +++--- kate/part/katesupercursor.cpp | 4 ++-- kate/part/kateviewinternal.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'kate/part') diff --git a/kate/part/katecodecompletion.cpp b/kate/part/katecodecompletion.cpp index 275894483..e8e53f661 100644 --- a/kate/part/katecodecompletion.cpp +++ b/kate/part/katecodecompletion.cpp @@ -163,9 +163,9 @@ void KateCodeCompletion::showCompletionBox( bool KateCodeCompletion::eventFilter( TQObject *o, TQEvent *e ) { - if ( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionPopup) && - TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionListBox) && - TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionListBox->viewport()) ) + if ( o != m_completionPopup && + o != m_completionListBox && + o != m_completionListBox->viewport() ) return false; if( e->type() == TQEvent::Hide ) diff --git a/kate/part/katesupercursor.cpp b/kate/part/katesupercursor.cpp index b08888f57..1d47fcb4e 100644 --- a/kate/part/katesupercursor.cpp +++ b/kate/part/katesupercursor.cpp @@ -446,7 +446,7 @@ bool KateSuperRange::boundaryOn(uint lineNum) const void KateSuperRange::slotEvaluateChanged() { - if (sender() == static_cast(m_start)) { + if (sender() == m_start) { if (m_evaluate) { if (!m_endChanged) { // Only one was changed @@ -484,7 +484,7 @@ void KateSuperRange::slotEvaluateChanged() void KateSuperRange::slotEvaluateUnChanged() { - if (sender() == static_cast(m_start)) { + if (sender() == m_start) { if (m_evaluate) { if (m_endChanged) { // Only one changed diff --git a/kate/part/kateviewinternal.cpp b/kate/part/kateviewinternal.cpp index 5acb93bc8..91f827d91 100644 --- a/kate/part/kateviewinternal.cpp +++ b/kate/part/kateviewinternal.cpp @@ -2438,7 +2438,7 @@ bool KateViewInternal::isTargetSelected( const TQPoint& p ) bool KateViewInternal::eventFilter( TQObject *obj, TQEvent *e ) { - if (TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_lineScroll)) + if (obj == m_lineScroll) { // the second condition is to make sure a scroll on the vertical bar doesn't cause a horizontal scroll ;) if (e->type() == TQEvent::Wheel && m_lineScroll->minValue() != m_lineScroll->maxValue()) -- cgit v1.2.1