From 1607518b8c749b4195c5ab11b405f77001526a6a Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:44:08 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro (cherry picked from commit a7ea84c97639f635d798348432f355e3ac496a1d) --- kpresenter/KPrView.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kpresenter/KPrView.cpp') diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp index c581ddf4..67a2596f 100644 --- a/kpresenter/KPrView.cpp +++ b/kpresenter/KPrView.cpp @@ -1856,7 +1856,7 @@ void KPrView::slotApplyFont() void KPrView::slotCounterStyleSelected() { - TQString actionName = TQString::fromLatin1(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString actionName = TQString::fromLatin1(sender()->name()); if ( actionName.startsWith( "counterstyle_" ) ) { TQString styleStr = actionName.mid(13); @@ -4912,7 +4912,7 @@ void KPrView::insertCustomVariable() KPrTextView *edit=m_canvas->currentTextObjectView(); if ( edit ) { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast(sender()))); + TDEAction * act = (TDEAction *)(sender()); edit->insertCustomVariable(act->text()); } } @@ -4992,7 +4992,7 @@ void KPrView::insertVariable() KPrTextView *edit=m_canvas->currentTextObjectView(); if ( edit ) { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast(sender()))); + TDEAction * act = (TDEAction *)(sender()); VariableDefMap::ConstIterator it = m_variableDefMap.find( act ); if ( it == m_variableDefMap.end() ) kdWarning(33001) << "Action not found in m_variableDefMap." << endl; @@ -5522,7 +5522,7 @@ void KPrView::extraStylist() // Called when selecting a style in the Format / Style menu void KPrView::slotStyleSelected() { - TQString actionName = TQString::fromUtf8(TQT_TQOBJECT(const_cast(sender()))->name()); + TQString actionName = TQString::fromUtf8(sender()->name()); kdDebug(33001) << "KPrView::slotStyleSelected " << actionName << endl; textStyleSelected( m_pKPresenterDoc->styleCollection()->findStyle( actionName ) ); } @@ -6388,7 +6388,7 @@ TQPtrList KPrView::listOfResultOfCheckWord( const TQString &word ) void KPrView::slotCorrectWord() { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast(sender()))); + TDEAction * act = (TDEAction *)(sender()); KPrTextView* edit = m_canvas->currentTextObjectView(); if ( edit ) { @@ -6430,7 +6430,7 @@ void KPrView::initialLayoutOfSplitter() void KPrView::slotChildActivated(bool a) { - KoViewChild* ch = child( (KoView*)TQT_TQOBJECT(const_cast(sender())) ); + KoViewChild* ch = child( (KoView*)sender() ); if ( !ch ) return; -- cgit v1.2.1