diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:44:08 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-18 20:22:59 +0900 |
commit | a7ea84c97639f635d798348432f355e3ac496a1d (patch) | |
tree | 34917a6af147ff19cc1f059ef72db53a196d4b61 /kpresenter | |
parent | ca88704c3e4a4fd5ddc9e96e4ccf22b53816e03d (diff) | |
download | koffice-a7ea84c97639f635d798348432f355e3ac496a1d.tar.gz koffice-a7ea84c97639f635d798348432f355e3ac496a1d.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kpresenter')
-rw-r--r-- | kpresenter/KPrView.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(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<TDEAction> KPrView::listOfResultOfCheckWord( const TQString &word ) void KPrView::slotCorrectWord() { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(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<TQT_BASE_OBJECT_NAME*>(sender())) ); + KoViewChild* ch = child( (KoView*)sender() ); if ( !ch ) return; |