diff options
Diffstat (limited to 'lib/kotext/KoTextObject.cpp')
-rw-r--r-- | lib/kotext/KoTextObject.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/lib/kotext/KoTextObject.cpp b/lib/kotext/KoTextObject.cpp index c65e3bb6..f6716b2d 100644 --- a/lib/kotext/KoTextObject.cpp +++ b/lib/kotext/KoTextObject.cpp @@ -105,7 +105,7 @@ void KoTextObject::init() this, TQT_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); connect( textdoc, TQT_SIGNAL( newCommand( KCommand* ) ), this, TQT_SIGNAL( newCommand( KCommand* ) ) ); - connect( textdoc, TQT_SIGNAL( tqrepaintChanged() ), + connect( textdoc, TQT_SIGNAL( repaintChanged() ), this, TQT_SLOT( emitRepaintChanged() ) ); connect( this, TQT_SIGNAL(paragraphModified( KoTextParag*, int, int , int ) ), @@ -193,7 +193,7 @@ bool KoTextObject::selectionHasCustomItems( KoTextDocument::SelectionId selectio void KoTextObject::slotAfterUndoRedo() { formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit updateUI( true ); emit showCursor(); emit ensureCursorVisible(); @@ -520,7 +520,7 @@ void KoTextObject::doKeyboardAction( KoTextCursor * cursor, KoTextFormat * & /*c cursor->parag()->setNoCounter(); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit ensureCursorVisible(); emit showCursor(); emit updateUI( doUpdateCurrentFormat ); @@ -588,7 +588,7 @@ void KoTextObject::doKeyboardAction( KoTextCursor * cursor, KoTextFormat * & /*c clearUndoRedoInfo(); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit ensureCursorVisible(); emit showCursor(); emit updateUI( doUpdateCurrentFormat ); @@ -704,7 +704,7 @@ void KoTextObject::insert( KoTextCursor * cursor, KoTextFormat * currentFormat, } if ( tqrepaint ) { - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit ensureCursorVisible(); emit showCursor(); // we typed the first char of a paragraph in AlignAuto mode -> show correct tqalignment in UI @@ -763,7 +763,7 @@ void KoTextObject::pasteText( KoTextCursor * cursor, const TQString & text, KoTe insert( cursor, currentFormat, t, i18n("Paste Text"), KoTextDocument::Standard, insertFlags ); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); } } @@ -793,7 +793,7 @@ KCommand* KoTextObject::setParagLayoutCommand( KoTextCursor * cursor, const KoPa } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit showCursor(); emit updateUI( true ); @@ -925,7 +925,7 @@ KCommand *KoTextObject::applyStyleCommand( KoTextCursor * cursor, const KoParagS { setLastFormattedParag( firstParag ); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit updateUI( true ); emit showCursor(); } @@ -977,7 +977,7 @@ void KoTextObject::applyStyleChange( KoStyleChangeDefMap changed ) } setLastFormattedParag( textdoc->firstParag() ); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit updateUI( true ); } @@ -1054,7 +1054,7 @@ KCommand * KoTextObject::setFormatCommand( KoTextCursor * cursor, KoTextFormat * undoRedoInfo.clear(); setLastFormattedParag( c1.parag() ); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit showCursor(); } if ( isNewFormat ) { @@ -1068,7 +1068,7 @@ KCommand * KoTextObject::setFormatCommand( KoTextCursor * cursor, KoTextFormat * cursor->parag()->setFormat( newFormat ); cursor->parag()->tqinvalidate(0); cursor->parag()->format(); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); } } } @@ -1125,7 +1125,7 @@ KCommand *KoTextObject::setCounterCommand( KoTextCursor * cursor, const KoParagC } } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); if ( !undoRedoInfo.newParagLayout.counter ) undoRedoInfo.newParagLayout.counter = new KoParagCounter; *undoRedoInfo.newParagLayout.counter = counter; @@ -1164,7 +1164,7 @@ KCommand * KoTextObject::setAlignCommand( KoTextCursor * cursor, int align, KoTe start->setAlign(align); } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); undoRedoInfo.newParagLayout.tqalignment = align; KoTextParagCommand *cmd = new KoTextParagCommand( textdoc, undoRedoInfo.id, undoRedoInfo.eid, @@ -1202,7 +1202,7 @@ KCommand * KoTextObject::setMarginCommand( KoTextCursor * cursor, TQStyleSheetIt start->setMargin(m, margin); } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); undoRedoInfo.newParagLayout.margins[m] = margin; KoTextParagCommand *cmd = new KoTextParagCommand( textdoc, undoRedoInfo.id, undoRedoInfo.eid, @@ -1250,7 +1250,7 @@ KCommand * KoTextObject::setBackgroundColorCommand( KoTextCursor * cursor, start->setBackgroundColor(color); } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); // Update undo/redo info undoRedoInfo.newParagLayout.backgroundColor = color; @@ -1298,7 +1298,7 @@ KCommand * KoTextObject::setLineSpacingCommand( KoTextCursor * cursor, double sp } } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); undoRedoInfo.newParagLayout.setLineSpacingValue( spacing ); undoRedoInfo.newParagLayout.lineSpacingType = _type; KoTextParagCommand *cmd = new KoTextParagCommand( @@ -1358,7 +1358,7 @@ KCommand * KoTextObject::setBordersCommand( KoTextCursor * cursor, const KoBorde end->next()->setChanged( true ); } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); undoRedoInfo.newParagLayout.leftBorder=leftBorder; undoRedoInfo.newParagLayout.rightBorder=rightBorder; undoRedoInfo.newParagLayout.topBorder=topBorder; @@ -1414,7 +1414,7 @@ KCommand * KoTextObject::setJoinBordersCommand( KoTextCursor * cursor, bool join } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); undoRedoInfo.newParagLayout.joinBorder=join; KoTextParagCommand *cmd = new KoTextParagCommand( @@ -1456,7 +1456,7 @@ KCommand * KoTextObject::setTabListCommand( KoTextCursor * cursor, const KoTabul } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); undoRedoInfo.newParagLayout.setTabList( tabList ); KoTextParagCommand *cmd = new KoTextParagCommand( textdoc, undoRedoInfo.id, undoRedoInfo.eid, @@ -1494,7 +1494,7 @@ KCommand * KoTextObject::setParagDirectionCommand( KoTextCursor * cursor, TQChar } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); ////// ### TODO #if 0 undoRedoInfo.newParagLayout.direction = d; @@ -1537,7 +1537,7 @@ void KoTextObject::removeSelectedText( KoTextCursor * cursor, KoTextDocument::Se setLastFormattedParag( cursor->parag() ); formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit ensureCursorVisible(); emit updateUI( true ); emit showCursor(); @@ -1628,7 +1628,7 @@ KCommand* KoTextObject::replaceSelectionCommand( KoTextCursor * cursor, const TQ if ( tqrepaint ) { formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit ensureCursorVisible(); emit updateUI( true ); emit showCursor(); @@ -1665,7 +1665,7 @@ void KoTextObject::highlightPortion( KoTextParag * parag, int index, int length, textdoc->setSelectionEnd( KoTextDocument::HighlightSelection, &cursor ); if ( tqrepaint ) { parag->setChanged( true ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); } } @@ -1678,7 +1678,7 @@ void KoTextObject::removeHighlight(bool tqrepaint) textdoc->removeSelection( KoTextDocument::HighlightSelection ); } if ( tqrepaint ) - emit tqrepaintChanged( this ); + emit repaintChanged( this ); } void KoTextObject::selectAll( bool select ) @@ -1692,7 +1692,7 @@ void KoTextObject::selectAll( bool select ) void KoTextObject::selectionChangedNotify( bool enableActions /* = true */) { - emit tqrepaintChanged( this ); + emit repaintChanged( this ); if ( enableActions ) emit selectionChanged( hasSelection() ); } @@ -2020,7 +2020,7 @@ KCommand *KoTextObject::changeCaseOfText(KoTextCursor *cursor,KoChangeCaseDia::T } } formatMore( 2 ); - emit tqrepaintChanged( this ); + emit repaintChanged( this ); emit ensureCursorVisible(); emit updateUI( true ); emit showCursor(); |