summaryrefslogtreecommitdiffstats
path: root/kresources/tvanytime
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kresources/tvanytime
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/tvanytime')
-rw-r--r--kresources/tvanytime/kcal_resourcetvanytime.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kresources/tvanytime/kcal_resourcetvanytime.cpp b/kresources/tvanytime/kcal_resourcetvanytime.cpp
index 83ae49bb9..a7cfebecd 100644
--- a/kresources/tvanytime/kcal_resourcetvanytime.cpp
+++ b/kresources/tvanytime/kcal_resourcetvanytime.cpp
@@ -288,8 +288,8 @@ bool ResourceTVAnytime::readServiceInformation( const TQDomDocument & serviceInf
Service s;
TQDomElement e3 = n3.toElement();
if (s.loadXML( e3 ) ) {
- s.setActive( mActiveServices.contains( s.id() ) );
- bool newService = !mServiceMap.contains( s.id() );
+ s.setActive( mActiveServices.tqcontains( s.id() ) );
+ bool newService = !mServiceMap.tqcontains( s.id() );
if ( newService )
{
mServiceMap.insert( s.id(), s );
@@ -320,7 +320,7 @@ bool ResourceTVAnytime::readService( const TQString & serviceId )
TQStringList entries = mScheduleArchive->directory()->entries();
TQRegExp re( "^(\\d{8})" + serviceId );
TQStringList dates;
- TQString todaysDate = TQDate::currentDate().toString( "yyyyMMdd" );
+ TQString todaysDate = TQDate::tqcurrentDate().toString( "yyyyMMdd" );
for( TQStringList::Iterator it = entries.begin(); it != entries.end(); ++it )
{
if ( re.search( *it ) != -1 ) // this entry belongs to the requested service
@@ -328,10 +328,10 @@ bool ResourceTVAnytime::readService( const TQString & serviceId )
TQString entry = re.cap( 1 );
// handle this date according to user preferences
TQDate entryDate( entry.left( 4 ).toInt(), entry.mid( 4, 2 ).toInt(), entry.right( 2 ).toInt() );
- if ( entryDate < TQDate::currentDate() || ( entryDate > TQDate::currentDate().addDays( prefs()->days() - 1 ) ) )
+ if ( entryDate < TQDate::tqcurrentDate() || ( entryDate > TQDate::tqcurrentDate().addDays( prefs()->days() - 1 ) ) )
continue;
- if ( !dates.contains( re.cap( 1 ) ) )
+ if ( !dates.tqcontains( re.cap( 1 ) ) )
dates.append( re.cap( 1 ) );
}
}
@@ -415,7 +415,7 @@ bool ResourceTVAnytime::readService( const TQString & serviceId )
}
}
else
- kdDebug() << " file contains schedule for another service!" << endl;
+ kdDebug() << " file tqcontains schedule for another service!" << endl;
}
}
}
@@ -454,7 +454,7 @@ bool ResourceTVAnytime::subresourceActive( const TQString & subresource ) const
void ResourceTVAnytime::setSubresourceActive( const TQString & subresource, bool active )
{
- if ( mServiceMap.contains( subresource ) )
+ if ( mServiceMap.tqcontains( subresource ) )
{
Service s = mServiceMap[ subresource ];
if ( s.active() != active )