From c0332621bc998c9786f4841e86a62b7711fe4abf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 4 Jan 2024 10:30:32 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- lib/kotext/KoTextObject.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'lib/kotext/KoTextObject.cpp') diff --git a/lib/kotext/KoTextObject.cpp b/lib/kotext/KoTextObject.cpp index cae6e9e4..01eea0fa 100644 --- a/lib/kotext/KoTextObject.cpp +++ b/lib/kotext/KoTextObject.cpp @@ -88,30 +88,30 @@ void KoTextObject::init() m_highlightSelectionAdded = false; interval = 0; changeIntervalTimer = new TQTimer( this ); - connect( changeIntervalTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( doChangeInterval() ) ); + connect( changeIntervalTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( doChangeInterval() ) ); formatTimer = new TQTimer( this ); - connect( formatTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( formatMore() ) ); + connect( formatTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( formatMore() ) ); // Apply default style to initial paragraph if ( m_lastFormatted && m_defaultStyle ) m_lastFormatted->applyStyle( m_defaultStyle ); - connect( textdoc, TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ), - this, TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ) ); - connect( textdoc, TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ), - this, TQT_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); - connect( textdoc, TQT_SIGNAL( newCommand( KCommand* ) ), - this, TQT_SIGNAL( newCommand( KCommand* ) ) ); - connect( textdoc, TQT_SIGNAL( repaintChanged() ), - this, TQT_SLOT( emitRepaintChanged() ) ); + connect( textdoc, TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ), + this, TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ) ); + connect( textdoc, TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ), + this, TQ_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); + connect( textdoc, TQ_SIGNAL( newCommand( KCommand* ) ), + this, TQ_SIGNAL( newCommand( KCommand* ) ) ); + connect( textdoc, TQ_SIGNAL( repaintChanged() ), + this, TQ_SLOT( emitRepaintChanged() ) ); - connect( this, TQT_SIGNAL(paragraphModified( KoTextParag*, int, int , int ) ), - this, TQT_SLOT(slotParagraphModified(KoTextParag *, int, int , int))); - connect( this, TQT_SIGNAL(paragraphCreated( KoTextParag* )), - this, TQT_SLOT(slotParagraphCreated(KoTextParag *))); + connect( this, TQ_SIGNAL(paragraphModified( KoTextParag*, int, int , int ) ), + this, TQ_SLOT(slotParagraphModified(KoTextParag *, int, int , int))); + connect( this, TQ_SIGNAL(paragraphCreated( KoTextParag* )), + this, TQ_SLOT(slotParagraphCreated(KoTextParag *))); } KoTextObject::~KoTextObject() @@ -231,7 +231,7 @@ void KoTextObject::undo() emit setCursor( c ); setLastFormattedParag( textdoc->firstParag() ); delete cursor; - TQTimer::singleShot( 0, this, TQT_SLOT( slotAfterUndoRedo() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotAfterUndoRedo() ) ); } void KoTextObject::redo() @@ -248,7 +248,7 @@ void KoTextObject::redo() emit setCursor( c ); // see undo setLastFormattedParag( textdoc->firstParag() ); delete cursor; - TQTimer::singleShot( 0, this, TQT_SLOT( slotAfterUndoRedo() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotAfterUndoRedo() ) ); } KoTextObject::UndoRedoInfo::UndoRedoInfo( KoTextObject *to ) -- cgit v1.2.1