summaryrefslogtreecommitdiffstats
path: root/libkcal/compat.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /libkcal/compat.cpp
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/compat.cpp')
-rw-r--r--libkcal/compat.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libkcal/compat.cpp b/libkcal/compat.cpp
index 4a1a38fda..8268f9785 100644
--- a/libkcal/compat.cpp
+++ b/libkcal/compat.cpp
@@ -37,15 +37,15 @@ Compat *CompatFactory::createCompat( const TQString &productId )
Compat *compat = 0;
- int korg = productId.tqfind( "KOrganizer" );
- int outl9 = productId.tqfind( "Outlook 9.0" );
-// int kcal = productId.tqfind( "LibKCal" );
+ int korg = productId.find( "KOrganizer" );
+ int outl9 = productId.find( "Outlook 9.0" );
+// int kcal = productId.find( "LibKCal" );
// TODO: Use the version of LibKCal to determine the compat class...
if ( korg >= 0 ) {
- int versionStart = productId.tqfind( " ", korg );
+ int versionStart = productId.find( " ", korg );
if ( versionStart >= 0 ) {
- int versionStop = productId.tqfind( TQRegExp( "[ /]" ), versionStart + 1 );
+ int versionStop = productId.find( TQRegExp( "[ /]" ), versionStart + 1 );
if ( versionStop >= 0 ) {
TQString version = productId.mid( versionStart + 1,
versionStop - versionStart - 1 );
@@ -54,7 +54,7 @@ Compat *CompatFactory::createCompat( const TQString &productId )
int versionNum = version.section( ".", 0, 0 ).toInt() * 10000 +
version.section( ".", 1, 1 ).toInt() * 100 +
version.section( ".", 2, 2 ).toInt();
- int releaseStop = productId.tqfind( "/", versionStop );
+ int releaseStop = productId.find( "/", versionStop );
TQString release;
if ( releaseStop > versionStop ) {
release = productId.mid( versionStop+1, releaseStop-versionStop-1 );
@@ -217,7 +217,7 @@ void CompatPre31::fixRecurrence( Incidence *incidence )
TQValueList<int> months = r->byMonths();
for ( TQValueListConstIterator<int> it = days.begin(); it != days.end(); ++it ) {
int newmonth = TQDate( r->startDt().date().year(), 1, 1).addDays( (*it) - 1 ).month();
- if ( !months.tqcontains( newmonth ) )
+ if ( !months.contains( newmonth ) )
months.append( newmonth );
}
r->setByMonths( months );