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 21:44:59 +0900 |
commit | 1607518b8c749b4195c5ab11b405f77001526a6a (patch) | |
tree | 89b8bc00c6b9625f6a4f061594f57f457d18a174 /kword/KWView.cpp | |
parent | 64574118b7f71db7cb0a7f513a824dd51185b632 (diff) | |
download | koffice-1607518b.tar.gz koffice-1607518b.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a7ea84c97639f635d798348432f355e3ac496a1d)
Diffstat (limited to 'kword/KWView.cpp')
-rw-r--r-- | kword/KWView.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kword/KWView.cpp b/kword/KWView.cpp index 74a49cfa2..7d5bbf7f4 100644 --- a/kword/KWView.cpp +++ b/kword/KWView.cpp @@ -1512,7 +1512,7 @@ void KWView::insertExpression() KWTextFrameSetEdit * edit = currentTextEdit(); if ( edit ) { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))); + TDEAction * act = (TDEAction *)(sender()); edit->insertExpression(act->text()); } } @@ -1611,7 +1611,7 @@ void KWView::insertCustomVariable() KWTextFrameSetEdit * edit = currentTextEdit(); if ( edit ) { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))); + TDEAction * act = (TDEAction *)(sender()); edit->insertCustomVariable(act->text()); } } @@ -2245,7 +2245,7 @@ void KWView::updateStyleList() // Called when selecting a style in the Format / Style menu void KWView::slotStyleSelected() { - TQString actionName = TQString::fromUtf8(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name()); + TQString actionName = TQString::fromUtf8(sender()->name()); const TQString prefix = PARAGSTYLE_ACTION_PREFIX; if ( actionName.startsWith( prefix ) ) { actionName = actionName.mid( prefix.length() ); @@ -3580,7 +3580,7 @@ void KWView::insertVariable() KWTextFrameSetEdit * edit = currentTextEdit(); if ( edit ) { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))); + TDEAction * act = (TDEAction *)(sender()); VariableDefMap::Iterator it = m_variableDefMap.find( act ); if ( it == m_variableDefMap.end() ) kdWarning() << "Action not found in m_variableDefMap." << endl; @@ -4532,7 +4532,7 @@ void KWView::textStyleSelected( int index ) // Slot is called when selecting a framestyle in the Frames / Framestyle menu void KWView::slotFrameStyleSelected() { - TQString actionName = TQString::fromUtf8(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name()); + TQString actionName = TQString::fromUtf8(sender()->name()); const TQString prefix = FRAMESTYLE_ACTION_PREFIX; if ( actionName.startsWith( prefix ) ) { actionName = actionName.mid( prefix.length() ); @@ -4601,7 +4601,7 @@ void KWView::frameStyleSelected( KWFrameStyle *sty ) // Called when selecting a tablestyle in the Table / Tablestyle menu void KWView::slotTableStyleSelected() { - TQString actionName = TQString::fromUtf8(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name()); + TQString actionName = TQString::fromUtf8(sender()->name()); const TQString prefix = TABLESTYLE_ACTION_PREFIX; if ( actionName.startsWith( prefix ) ) { actionName = actionName.mid( prefix.length() ); @@ -5021,7 +5021,7 @@ void KWView::textSpacingDouble() void KWView::slotCounterStyleSelected() { - TQString actionName = TQString::fromLatin1(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name()); + TQString actionName = TQString::fromLatin1(sender()->name()); TQString styleStr = actionName.mid(13); //kdDebug() << "KWView::slotCounterStyleSelected styleStr=" << styleStr << endl; KoParagCounter::Style style = (KoParagCounter::Style)(styleStr.toInt()); @@ -7460,7 +7460,7 @@ TQPtrList<TDEAction> KWView::listOfResultOfCheckWord( const TQString &word ) void KWView::slotCorrectWord() { - TDEAction * act = (TDEAction *)(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))); + TDEAction * act = (TDEAction *)(sender()); KWTextFrameSetEdit* edit = currentTextEdit(); if ( edit ) { @@ -7472,7 +7472,7 @@ void KWView::slotCorrectWord() void KWView::slotChildActivated( bool a ) { // Same hack as in KoView - KoViewChild* ch = child( (KoView*)TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())) ); + KoViewChild* ch = child( (KoView*)sender() ); if ( !ch ) return; KWDocumentChild* kwchild = static_cast<KWDocumentChild *>( ch->documentChild() ); |