summaryrefslogtreecommitdiffstats
path: root/kmail/kmfolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmfolder.cpp')
-rw-r--r--kmail/kmfolder.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmail/kmfolder.cpp b/kmail/kmfolder.cpp
index e8fa8a3d5..08fe43e01 100644
--- a/kmail/kmfolder.cpp
+++ b/kmail/kmfolder.cpp
@@ -432,14 +432,14 @@ int KMFolder::moveMsg(TQPtrList<KMMessage> q, int* index_return )
return mStorage->moveMsg( q, index_return );
}
-int KMFolder::tqfind( const KMMsgBase* msg ) const
+int KMFolder::find( const KMMsgBase* msg ) const
{
- return mStorage ? mStorage->tqfind( msg ) : -1;
+ return mStorage ? mStorage->find( msg ) : -1;
}
-int KMFolder::tqfind( const KMMessage* msg ) const
+int KMFolder::find( const KMMessage* msg ) const
{
- return mStorage ? mStorage->tqfind( msg ) : -1;
+ return mStorage ? mStorage->find( msg ) : -1;
}
int KMFolder::count( bool cache ) const
@@ -717,8 +717,8 @@ TQString KMFolder::idString() const
TQString escapedName = name();
/* Escape [ and ] as they are disallowed for kconfig sections and that is
what the idString is primarily used for. */
- escapedName.tqreplace( "[", "%(" );
- escapedName.tqreplace( "]", "%)" );
+ escapedName.replace( "[", "%(" );
+ escapedName.replace( "]", "%)" );
return relativePath + escapedName;
}
@@ -901,7 +901,7 @@ bool KMFolder::isValidName( const TQString &folderName, TQString &message )
KMFolderType fldType = folderType();
// names of local folders must not contain a '/'
- if ( folderName.tqfind( '/' ) != -1 &&
+ if ( folderName.find( '/' ) != -1 &&
fldType != KMFolderTypeImap &&
fldType != KMFolderTypeCachedImap ) {
message = i18n( "Folder names cannot contain the / (slash) character; please choose another folder name." );
@@ -928,7 +928,7 @@ bool KMFolder::isValidName( const TQString &folderName, TQString &message )
delimiter = ai->delimiterForFolder( mStorage );
}
}
- if ( !delimiter.isEmpty() && folderName.tqfind( delimiter ) != -1 ) {
+ if ( !delimiter.isEmpty() && folderName.find( delimiter ) != -1 ) {
message = i18n( "Your IMAP server does not allow the character '%1'; please choose another folder name." ).tqarg( delimiter );
return false;
}