diff options
Diffstat (limited to 'kdeui/keditcl1.cpp')
-rw-r--r-- | kdeui/keditcl1.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kdeui/keditcl1.cpp b/kdeui/keditcl1.cpp index 0b8ebea12..a77e1c523 100644 --- a/kdeui/keditcl1.cpp +++ b/kdeui/keditcl1.cpp @@ -61,7 +61,7 @@ KEdit::KEdit(TQWidget *_parent, const char *name) line_pos = col_pos = 0; srchdialog = NULL; - tqreplace_dialog= NULL; + replace_dialog= NULL; gotodialog = NULL; setAcceptDrops(true); @@ -128,7 +128,7 @@ KEdit::insertText(TQTextStream *stream) setCursorPosition(saveline, savecol); // setAutoUpdate(true); -// tqrepaint(); +// repaint(); setModified(true); setFocus(); @@ -140,7 +140,7 @@ KEdit::insertText(TQTextStream *stream) // TQString str = text(); // for (int i = 0; i < (int) str.length(); i++) - // printf("KEdit: U+%04X\n", str[i].tqunicode()); + // printf("KEdit: U+%04X\n", str[i].unicode()); } @@ -164,7 +164,7 @@ KEdit::cleanWhiteSpace() if (line.isEmpty()) { if (addSpace) - newText += TQString::tqfromLatin1("\n\n"); + newText += TQString::fromLatin1("\n\n"); if (firstLine) { if (firstChar.isSpace()) @@ -200,7 +200,7 @@ KEdit::cleanWhiteSpace() { deselect(); d->autoUpdate = true; - tqrepaint(); + repaint(); return; } if (wordWrap() == NoWrap) @@ -225,7 +225,7 @@ KEdit::cleanWhiteSpace() insert(newText); d->autoUpdate = true; - tqrepaint(); + repaint(); setModified(true); setFocus(); @@ -350,7 +350,7 @@ void KEdit::computePosition() int coltemp = col-start_of_line; int pos = 0; - int tqfind = 0; + int find = 0; int mem = 0; bool found_one = false; @@ -358,14 +358,14 @@ void KEdit::computePosition() // kedit+ sources -- if not, go away ;-) - while(tqfind >=0 && tqfind <= coltemp- 1 ){ - tqfind = linetext.tqfind('\t', tqfind+start_of_line, true )-start_of_line; - if( tqfind >=0 && tqfind <= coltemp - 1 ){ + while(find >=0 && find <= coltemp- 1 ){ + find = linetext.find('\t', find+start_of_line, true )-start_of_line; + if( find >=0 && find <= coltemp - 1 ){ found_one = true; - pos = pos + tqfind - mem; + pos = pos + find - mem; pos = pos + 8 - pos % 8; - mem = tqfind; - tqfind ++; + mem = find; + find ++; } } @@ -466,48 +466,48 @@ void KEdit::keyPressEvent ( TQKeyEvent *e) killing = false; - if ( KStdAccel::copy().tqcontains( key ) ) + if ( KStdAccel::copy().contains( key ) ) copy(); else if ( isReadOnly() ) TQMultiLineEdit::keyPressEvent( e ); // If this is an unmodified printable key, send it directly to TQMultiLineEdit. - else if ( !(key.keyCodeQt() & (CTRL | ALT)) && !e->text().isEmpty() && e->text().tqunicode()->isPrint() ) + else if ( !(key.keyCodeQt() & (CTRL | ALT)) && !e->text().isEmpty() && e->text().unicode()->isPrint() ) TQMultiLineEdit::keyPressEvent( e ); - else if ( KStdAccel::paste().tqcontains( key ) ) { + else if ( KStdAccel::paste().contains( key ) ) { paste(); setModified(true); slotCursorPositionChanged(); } - else if ( KStdAccel::cut().tqcontains( key ) ) { + else if ( KStdAccel::cut().contains( key ) ) { cut(); setModified(true); slotCursorPositionChanged(); } - else if ( KStdAccel::undo().tqcontains( key ) ) { + else if ( KStdAccel::undo().contains( key ) ) { undo(); setModified(true); slotCursorPositionChanged(); } - else if ( KStdAccel::redo().tqcontains( key ) ) { + else if ( KStdAccel::redo().contains( key ) ) { redo(); setModified(true); slotCursorPositionChanged(); } - else if ( KStdAccel::deleteWordBack().tqcontains( key ) ) { + else if ( KStdAccel::deleteWordBack().contains( key ) ) { moveCursor(MoveWordBackward, true); if (hasSelectedText()) del(); setModified(true); slotCursorPositionChanged(); } - else if ( KStdAccel::deleteWordForward().tqcontains( key ) ) { + else if ( KStdAccel::deleteWordForward().contains( key ) ) { moveCursor(MoveWordForward, true); if (hasSelectedText()) del(); setModified(true); slotCursorPositionChanged(); } - else if ( KStdAccel::backwardWord().tqcontains( key ) ) { + else if ( KStdAccel::backwardWord().contains( key ) ) { CursorAction action = MoveWordBackward; int para, index; getCursorPosition( ¶, & index ); @@ -516,7 +516,7 @@ void KEdit::keyPressEvent ( TQKeyEvent *e) moveCursor(action, false ); slotCursorPositionChanged(); } - else if ( KStdAccel::forwardWord().tqcontains( key ) ) { + else if ( KStdAccel::forwardWord().contains( key ) ) { CursorAction action = MoveWordForward; int para, index; getCursorPosition( ¶, & index ); @@ -525,27 +525,27 @@ void KEdit::keyPressEvent ( TQKeyEvent *e) moveCursor( action, false ); slotCursorPositionChanged(); } - else if ( KStdAccel::next().tqcontains( key ) ) { + else if ( KStdAccel::next().contains( key ) ) { moveCursor( MovePgDown, false ); slotCursorPositionChanged(); } - else if ( KStdAccel::prior().tqcontains( key ) ) { + else if ( KStdAccel::prior().contains( key ) ) { moveCursor( MovePgUp, false ); slotCursorPositionChanged(); } - else if ( KStdAccel::home().tqcontains( key ) ) { + else if ( KStdAccel::home().contains( key ) ) { moveCursor( MoveHome, false ); slotCursorPositionChanged(); } - else if ( KStdAccel::end().tqcontains( key ) ) { + else if ( KStdAccel::end().contains( key ) ) { moveCursor( MoveEnd, false ); slotCursorPositionChanged(); } - else if ( KStdAccel::beginningOfLine().tqcontains( key ) ) { + else if ( KStdAccel::beginningOfLine().contains( key ) ) { moveCursor( MoveLineStart, false); slotCursorPositionChanged(); } - else if ( KStdAccel::endOfLine().tqcontains( key ) ) { + else if ( KStdAccel::endOfLine().contains( key ) ) { moveCursor( MoveLineEnd, false); slotCursorPositionChanged(); } |