summaryrefslogtreecommitdiffstats
path: root/libkcal/icalformatimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /libkcal/icalformatimpl.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/icalformatimpl.cpp')
-rw-r--r--libkcal/icalformatimpl.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkcal/icalformatimpl.cpp b/libkcal/icalformatimpl.cpp
index 297118b59..f53ec1e16 100644
--- a/libkcal/icalformatimpl.cpp
+++ b/libkcal/icalformatimpl.cpp
@@ -1133,11 +1133,11 @@ FreeBusy *ICalFormatImpl::readFreeBusy(icalcomponent *vfreebusy)
while ( param ) {
if ( strncmp( icalparameter_get_xname( param ), "X-SUMMARY", 9 ) == 0 ) {
period.setSummary( TQString::fromUtf8(
- KCodecs::base64Decode( icalparameter_get_xvalue( param ) ) ) );
+ KCodecs::base64Decode( TQByteArray( icalparameter_get_xvalue( param ) ) ) ) );
}
if ( strncmp( icalparameter_get_xname( param ), "X-LOCATION", 10 ) == 0 ) {
period.setLocation( TQString::fromUtf8(
- KCodecs::base64Decode( icalparameter_get_xvalue( param ) ) ) );
+ KCodecs::base64Decode( TQByteArray( icalparameter_get_xvalue( param ) ) ) ) );
}
param = icalproperty_get_next_parameter( p, ICAL_X_PARAMETER );
}
@@ -1171,7 +1171,7 @@ Attendee *ICalFormatImpl::readAttendee(icalproperty *attendee)
icalparameter *p = 0;
TQString email = TQString::fromUtf8(icalproperty_get_attendee(attendee));
- if ( email.startsWith( "mailto:", false ) ) {
+ if ( email.tqstartsWith( "mailto:", false ) ) {
email = email.mid( 7 );
}
@@ -1267,7 +1267,7 @@ Attendee *ICalFormatImpl::readAttendee(icalproperty *attendee)
Person ICalFormatImpl::readOrganizer( icalproperty *organizer )
{
TQString email = TQString::fromUtf8(icalproperty_get_organizer(organizer));
- if ( email.startsWith( "mailto:", false ) ) {
+ if ( email.tqstartsWith( "mailto:", false ) ) {
email = email.mid( 7 );
}
TQString cn;
@@ -1855,7 +1855,7 @@ void ICalFormatImpl::readAlarm(icalcomponent *alarm,Incidence *incidence)
// Only in EMAIL alarm
case ICAL_ATTENDEE_PROPERTY: {
TQString email = TQString::fromUtf8(icalproperty_get_attendee(p));
- if ( email.startsWith("mailto:", false ) ) {
+ if ( email.tqstartsWith("mailto:", false ) ) {
email = email.mid( 7 );
}
TQString name;
@@ -2166,7 +2166,7 @@ bool ICalFormatImpl::populate( Calendar *cal, icalcomponent *calendar )
if (todo) {
if (todo->hasRecurrenceID()) {
TQString originalUid = todo->uid();
- todo->setUid(originalUid + TQString("-recur-%1").arg(todo->recurrenceID().toTime_t()));
+ todo->setUid(originalUid + TQString("-recur-%1").tqarg(todo->recurrenceID().toTime_t()));
if (!cal->todo(todo->uid())) {
if ( !cal->addTodo( todo ) ) {
cal->endBatchAdding();
@@ -2208,7 +2208,7 @@ bool ICalFormatImpl::populate( Calendar *cal, icalcomponent *calendar )
if (event) {
if (event->hasRecurrenceID()) {
TQString originalUid = event->uid();
- event->setUid(originalUid + TQString("-recur-%1").arg(event->recurrenceID().toTime_t()));
+ event->setUid(originalUid + TQString("-recur-%1").tqarg(event->recurrenceID().toTime_t()));
if (!cal->event(event->uid())) {
cal->addEvent(event);
if (!cal->event(originalUid)) {
@@ -2246,7 +2246,7 @@ bool ICalFormatImpl::populate( Calendar *cal, icalcomponent *calendar )
if (journal) {
if (journal->hasRecurrenceID()) {
TQString originalUid = journal->uid();
- journal->setUid(originalUid + TQString("-recur-%1").arg(journal->recurrenceID().toTime_t()));
+ journal->setUid(originalUid + TQString("-recur-%1").tqarg(journal->recurrenceID().toTime_t()));
if (!cal->journal(journal->uid())) {
cal->addJournal(journal);
if (!cal->event(originalUid)) {