summaryrefslogtreecommitdiffstats
path: root/libkcal/icalformatimpl.cpp
diff options
context:
space:
mode:
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)) {