summaryrefslogtreecommitdiffstats
path: root/libkcal/compat.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /libkcal/compat.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/compat.cpp')
-rw-r--r--libkcal/compat.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libkcal/compat.cpp b/libkcal/compat.cpp
index 5b5c6a5a4..4a1a38fda 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.find( "KOrganizer" );
- int outl9 = productId.find( "Outlook 9.0" );
-// int kcal = productId.find( "LibKCal" );
+ int korg = productId.tqfind( "KOrganizer" );
+ int outl9 = productId.tqfind( "Outlook 9.0" );
+// int kcal = productId.tqfind( "LibKCal" );
// TODO: Use the version of LibKCal to determine the compat class...
if ( korg >= 0 ) {
- int versionStart = productId.find( " ", korg );
+ int versionStart = productId.tqfind( " ", korg );
if ( versionStart >= 0 ) {
- int versionStop = productId.find( TQRegExp( "[ /]" ), versionStart + 1 );
+ int versionStop = productId.tqfind( 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.find( "/", versionStop );
+ int releaseStop = productId.tqfind( "/", versionStop );
TQString release;
if ( releaseStop > versionStop ) {
release = productId.mid( versionStop+1, releaseStop-versionStop-1 );