diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-07 21:14:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-07 21:14:06 +0000 |
commit | afbfdc507bfaafc8824a9808311d57a9ece87510 (patch) | |
tree | 47be45bbd69c321ce79e14b683e59318748be9cb /lib/kotext | |
parent | 880d042b2902fae8007f202dd35ad9330499867b (diff) | |
download | koffice-afbfdc507bfaafc8824a9808311d57a9ece87510.tar.gz koffice-afbfdc507bfaafc8824a9808311d57a9ece87510.zip |
Rename incorrect instances of tqrepaint[...] to repaint[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext')
-rw-r--r-- | lib/kotext/KoBgSpellCheck.cpp | 4 | ||||
-rw-r--r-- | lib/kotext/KoTextDocument.cpp | 4 | ||||
-rw-r--r-- | lib/kotext/KoTextDocument.h | 6 | ||||
-rw-r--r-- | lib/kotext/KoTextObject.cpp | 52 | ||||
-rw-r--r-- | lib/kotext/KoTextObject.h | 8 | ||||
-rw-r--r-- | lib/kotext/KoVariable.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoVariable.h | 2 |
7 files changed, 39 insertions, 39 deletions
diff --git a/lib/kotext/KoBgSpellCheck.cpp b/lib/kotext/KoBgSpellCheck.cpp index d20dd80d..ae2f3668 100644 --- a/lib/kotext/KoBgSpellCheck.cpp +++ b/lib/kotext/KoBgSpellCheck.cpp @@ -242,7 +242,7 @@ void KoBgSpellCheck::slotParagraphModified( KoTextParag* parag, int /*ParagModif // Tricky: KSpell2::Filter::nextWord's behavior makes the for() loop skip ignored words, // so it doesn't mark them as OK... So we need to clear the marks everywhere first. - // To avoid flickering the tqrepainting is only done once, after checking the parag. + // To avoid flickering the repainting is only done once, after checking the parag. markWord( parag, curPos, parag->length() - curPos, false ); for ( Word w = filter.nextWord(); !w.end; w = filter.nextWord() ) { @@ -287,7 +287,7 @@ void KoBgSpellCheck::slotClearPara() // (e.g. due to adding a word to the ignore list, not due to editing) // // TODO: do this all only if there was a format with 'misspelled' in the paragraph, - // to minimize tqrepaints + // to minimize repaints KoTextStringChar *ch = parag->at( 0 ); KoTextFormat format( *ch->format() ); format.setMisspelled( false ); diff --git a/lib/kotext/KoTextDocument.cpp b/lib/kotext/KoTextDocument.cpp index 2eb2dd00..b637f0a6 100644 --- a/lib/kotext/KoTextDocument.cpp +++ b/lib/kotext/KoTextDocument.cpp @@ -1271,12 +1271,12 @@ void KoTextDocument::drawParagWYSIWYG( TQPainter *p, KoTextParag *parag, int cx, #ifdef DEBUG_PAINTING kdDebug(32500) << " Repainting from lineChanged=" << parag->lineChanged() << " -> adding " << offsetY << " to rect" << endl; #endif - // Skip the lines that are not tqrepainted by moving Top. The bottom doesn't change. + // Skip the lines that are not repainted by moving Top. The bottom doesn't change. rect.rTop() += offsetY; } TQRect crect( cx, cy, cw, ch ); // the overall crect - TQRect ir( rect ); // will be the rect to be tqrepainted + TQRect ir( rect ); // will be the rect to be repainted TQBrush brush = cg.brush( TQColorGroup::Base ); diff --git a/lib/kotext/KoTextDocument.h b/lib/kotext/KoTextDocument.h index 2b658a1a..44bb0001 100644 --- a/lib/kotext/KoTextDocument.h +++ b/lib/kotext/KoTextDocument.h @@ -320,7 +320,7 @@ public: emit newCommand( cmd ); } void emitRepaintChanged() { - emit tqrepaintChanged(); + emit repaintChanged(); } signals: /** @@ -330,10 +330,10 @@ signals: */ void newCommand( KCommand *cmd ); /** - * Tell the world that we'd like some tqrepainting to happen. + * Tell the world that we'd like some repainting to happen. * KoTextObject connects (and forwards) that one. */ - void tqrepaintChanged(); + void repaintChanged(); protected: void drawWithoutDoubleBuffer( TQPainter *p, const TQRect &rect, const TQColorGroup &cg, 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(); diff --git a/lib/kotext/KoTextObject.h b/lib/kotext/KoTextObject.h index e6414f99..e1519ff4 100644 --- a/lib/kotext/KoTextObject.h +++ b/lib/kotext/KoTextObject.h @@ -348,7 +348,7 @@ public: * @param paragLayoutFlags which settings from the paragraph tqlayout to apply * @param formatFlags which settings from the text format to apply * @param createUndoRedo if true, an undo/redo command will be created and emitted - * @param interactive if true, the text will be reformatted/tqrepainted to show the new style + * @param interactive if true, the text will be reformatted/repainted to show the new style */ void applyStyle( KoTextCursor * cursor, const KoParagStyle * style, KoTextDocument::SelectionId selectionId = KoTextDocument::Standard, @@ -500,8 +500,8 @@ signals: */ void newCommand( KCommand *cmd ); - /** Tell the world that we'd like some tqrepainting to happen */ - void tqrepaintChanged( KoTextObject * ); + /** Tell the world that we'd like some repainting to happen */ + void repaintChanged( KoTextObject * ); void hideCursor(); void showCursor(); @@ -529,7 +529,7 @@ public slots: // The return value is used by ensureFormatted bool formatMore( int count = 10, bool emitAfterFormatting = true ); - void emitRepaintChanged() { emit tqrepaintChanged( this ); } + void emitRepaintChanged() { emit repaintChanged( this ); } public: // made public for KWTextFrameSet... diff --git a/lib/kotext/KoVariable.cpp b/lib/kotext/KoVariable.cpp index 2e5663af..e333eb36 100644 --- a/lib/kotext/KoVariable.cpp +++ b/lib/kotext/KoVariable.cpp @@ -541,7 +541,7 @@ TQValueList<KoVariable *> KoVariableCollection::recalcVariables(int type) // TODO pass list of textdocuments as argument // Or even better, call emitRepaintChanged on all modified textobjects if( !modifiedVariables.isEmpty() ) - emit tqrepaintVariable(); + emit repaintVariable(); #endif return modifiedVariables; } diff --git a/lib/kotext/KoVariable.h b/lib/kotext/KoVariable.h index d00dcb5c..e0a5a530 100644 --- a/lib/kotext/KoVariable.h +++ b/lib/kotext/KoVariable.h @@ -407,7 +407,7 @@ public: /** * Ask this variable to recalculate and to tqrepaint itself * Only use this if you're working on a single variable (e.g. popupmenu). - * Otherwise, better do the tqrepainting all at once. + * Otherwise, better do the repainting all at once. * @see KoVariableCollection::recalcVariables() */ void recalcAndRepaint(); |