summaryrefslogtreecommitdiffstats
path: root/kmail/kmedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmedit.cpp')
-rw-r--r--kmail/kmedit.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmail/kmedit.cpp b/kmail/kmedit.cpp
index dbbb53808..336901b37 100644
--- a/kmail/kmedit.cpp
+++ b/kmail/kmedit.cpp
@@ -122,7 +122,7 @@ void KMEdit::keyPressEvent( TQKeyEvent* e )
&& newLine[leadingWhiteSpaceCount].isSpace() ) {
++leadingWhiteSpaceCount;
}
- newLine = newLine.tqreplace( 0, leadingWhiteSpaceCount,
+ newLine = newLine.replace( 0, leadingWhiteSpaceCount,
lineText.left( bot ) );
removeParagraph( line );
insertParagraph( newLine, line );
@@ -383,7 +383,7 @@ KMSyntaxHighter::KMSyntaxHighter( TQTextEdit *textEdit,
bool KMSyntaxHighter::isMisspelled( const TQString &word )
{
- if ( mIgnoredWords.tqcontains( word ) ) {
+ if ( mIgnoredWords.contains( word ) ) {
return false;
}
else {
@@ -440,15 +440,15 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e)
(*mExtEditorTempFile->textStream()) << text();
mExtEditorTempFile->close();
- // tqreplace %f in the system line
- sysLine.tqreplace( "%f", mExtEditorTempFile->name() );
+ // replace %f in the system line
+ sysLine.replace( "%f", mExtEditorTempFile->name() );
mExtEditorProcess = new KProcess();
mExtEditorProcess->setUseShell( true );
sysLine += " ";
while (!sysLine.isEmpty())
{
- *mExtEditorProcess << sysLine.left(sysLine.tqfind(" ")).local8Bit();
- sysLine.remove(0, sysLine.tqfind(" ") + 1);
+ *mExtEditorProcess << sysLine.left(sysLine.find(" ")).local8Bit();
+ sysLine.remove(0, sysLine.find(" ") + 1);
}
connect(mExtEditorProcess, TQT_SIGNAL(processExited(KProcess*)),
TQT_SLOT(slotExternalEditorDone(KProcess*)));
@@ -497,13 +497,13 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e)
{
//Get word right clicked on
const TQRegExp wordBoundary( "[\\s\\W]" );
- firstSpace = paraText.tqfindRev( wordBoundary, charPos ) + 1;
- lastSpace = paraText.tqfind( wordBoundary, charPos );
+ firstSpace = paraText.findRev( wordBoundary, charPos ) + 1;
+ lastSpace = paraText.find( wordBoundary, charPos );
if( lastSpace == -1 )
lastSpace = paraText.length();
TQString word = paraText.mid( firstSpace, lastSpace - firstSpace );
//Continue if this word was misspelled
- if( !word.isEmpty() && mReplacements.tqcontains( word ) )
+ if( !word.isEmpty() && mReplacements.contains( word ) )
{
KPopupMenu p;