diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-14 20:16:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-14 20:16:30 +0000 |
commit | 1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch) | |
tree | f2defe163a805a9e34a2142dfde4cdb5e49241e7 /libkcal | |
parent | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff) | |
download | tdepim-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')
-rw-r--r-- | libkcal/attachmenthandler.cpp | 4 | ||||
-rw-r--r-- | libkcal/calformat.cpp | 6 | ||||
-rw-r--r-- | libkcal/calhelper.cpp | 2 | ||||
-rw-r--r-- | libkcal/confirmsavedialog.cpp | 2 | ||||
-rw-r--r-- | libkcal/convertqtopia.cpp | 2 | ||||
-rw-r--r-- | libkcal/dndfactory.cpp | 6 | ||||
-rw-r--r-- | libkcal/exceptions.cpp | 2 | ||||
-rw-r--r-- | libkcal/htmlexport.cpp | 22 | ||||
-rw-r--r-- | libkcal/icalformat.cpp | 4 | ||||
-rw-r--r-- | libkcal/icalformatimpl.cpp | 16 | ||||
-rw-r--r-- | libkcal/incidencebase.cpp | 2 | ||||
-rw-r--r-- | libkcal/incidenceformatter.cpp | 382 | ||||
-rw-r--r-- | libkcal/person.cpp | 2 | ||||
-rw-r--r-- | libkcal/qtopiaformat.cpp | 2 | ||||
-rw-r--r-- | libkcal/recurrencerule.h | 16 | ||||
-rw-r--r-- | libkcal/resourcecached.cpp | 4 | ||||
-rw-r--r-- | libkcal/resourcecachedconfig.cpp | 4 | ||||
-rw-r--r-- | libkcal/resourcecalendar.cpp | 6 | ||||
-rw-r--r-- | libkcal/resourcelocalconfig.cpp | 4 | ||||
-rw-r--r-- | libkcal/scheduler.cpp | 12 | ||||
-rw-r--r-- | libkcal/vcalformat.cpp | 6 |
21 files changed, 253 insertions, 253 deletions
diff --git a/libkcal/attachmenthandler.cpp b/libkcal/attachmenthandler.cpp index eb0fc2b77..4922cb12d 100644 --- a/libkcal/attachmenthandler.cpp +++ b/libkcal/attachmenthandler.cpp @@ -70,7 +70,7 @@ Attachment *AttachmentHandler::tqfind( TQWidget *tqparent, const TQString &attac if ( !a ) { KMessageBox::error( tqparent, - i18n( "No attachment named \"%1\" found in the incidence." ).arg( attachmentName ) ); + i18n( "No attachment named \"%1\" found in the incidence." ).tqarg( attachmentName ) ); return 0; } @@ -101,7 +101,7 @@ Attachment *AttachmentHandler::tqfind( TQWidget *tqparent, KMessageBox::error( tqparent, i18n( "The incidence that owns the attachment named \"%1\" could not be found. " - "Perhaps it was removed from your calendar?" ).arg( attachmentName ) ); + "Perhaps it was removed from your calendar?" ).tqarg( attachmentName ) ); return 0; } diff --git a/libkcal/calformat.cpp b/libkcal/calformat.cpp index 12ba30696..be26c3fcf 100644 --- a/libkcal/calformat.cpp +++ b/libkcal/calformat.cpp @@ -70,9 +70,9 @@ TQString CalFormat::createUniqueId() TQTime::currentTime().minute() + TQTime::currentTime().second() + TQTime::currentTime().msec(); TQString uidStr = TQString("%1-%2.%3") - .arg(mApplication) - .arg(KApplication::random()) - .arg(hashTime); + .tqarg(mApplication) + .tqarg(KApplication::random()) + .tqarg(hashTime); return uidStr; } diff --git a/libkcal/calhelper.cpp b/libkcal/calhelper.cpp index bb1442f53..73940b5d8 100644 --- a/libkcal/calhelper.cpp +++ b/libkcal/calhelper.cpp @@ -162,6 +162,6 @@ TQPair<ResourceCalendar *, TQString> CalHelper::incSubResourceCalendar( Calendar if ( res && res->canHaveSubresources() ) { subRes = res->subresourceIdentifier( incidence ); } - p = qMakePair( res, subRes ); + p = tqMakePair( res, subRes ); return p; } diff --git a/libkcal/confirmsavedialog.cpp b/libkcal/confirmsavedialog.cpp index 0d9edf1e9..b1e32f32e 100644 --- a/libkcal/confirmsavedialog.cpp +++ b/libkcal/confirmsavedialog.cpp @@ -40,7 +40,7 @@ ConfirmSaveDialog::ConfirmSaveDialog( const TQString &destination, TQLabel *label = new TQLabel( i18n("You have requested to save the following objects to '%1':") - .arg( destination ), topFrame ); + .tqarg( destination ), topFrame ); topLayout->addWidget( label ); mListView = new KListView( topFrame ); diff --git a/libkcal/convertqtopia.cpp b/libkcal/convertqtopia.cpp index 0e4b4352c..4af6affa7 100644 --- a/libkcal/convertqtopia.cpp +++ b/libkcal/convertqtopia.cpp @@ -105,7 +105,7 @@ int main(int argc,char **argv) } else { bool success = icalendarFormat.save( &cal, outputFile ); if ( !success ) { - std::cerr << i18n( "Error saving to '%1'." ).arg( outputFile ).local8Bit() + std::cerr << i18n( "Error saving to '%1'." ).tqarg( outputFile ).local8Bit() << std::endl; return 1; } diff --git a/libkcal/dndfactory.cpp b/libkcal/dndfactory.cpp index 913036d36..fd1ef20d3 100644 --- a/libkcal/dndfactory.cpp +++ b/libkcal/dndfactory.cpp @@ -178,7 +178,7 @@ bool DndFactory::cutIncidences( const Incidence::List &incidences ) bool DndFactory::copyIncidences( const Incidence::List &incidences ) { - TQClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::tqclipboard(); CalendarLocal cal( mCalendar->timeZoneId() ); Incidence::List::ConstIterator it; @@ -206,7 +206,7 @@ bool DndFactory::copyIncidence( Incidence *selectedInc ) Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime *newTime ) { CalendarLocal cal( mCalendar->timeZoneId() ); - TQClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::tqclipboard(); Incidence::List list; if ( !ICalDrag::decode( cb->data(), &cal ) && @@ -249,7 +249,7 @@ Incidence::List DndFactory::pasteIncidences( const TQDate &newDate, const TQTime Incidence *DndFactory::pasteIncidence( const TQDate &newDate, const TQTime *newTime ) { CalendarLocal cal( mCalendar->timeZoneId() ); - TQClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::tqclipboard(); if ( !ICalDrag::decode( cb->data(), &cal ) && !VCalDrag::decode( cb->data(), &cal ) ) { diff --git a/libkcal/exceptions.cpp b/libkcal/exceptions.cpp index 99c804ddf..0394a4003 100644 --- a/libkcal/exceptions.cpp +++ b/libkcal/exceptions.cpp @@ -38,7 +38,7 @@ Exception::~Exception() TQString Exception::message() { if ( mMessage.isEmpty() ) { - return i18n( "%1 Error" ).arg( CalFormat::application() ); + return i18n( "%1 Error" ).tqarg( CalFormat::application() ); } else { return mMessage; } diff --git a/libkcal/htmlexport.cpp b/libkcal/htmlexport.cpp index 387ba1730..cbe3f6d7e 100644 --- a/libkcal/htmlexport.cpp +++ b/libkcal/htmlexport.cpp @@ -147,8 +147,8 @@ void HtmlExport::createMonthView(TQTextStream *ts) while ( start < toDate() ) { // Write header - *ts << "<h2>" << (i18n("month_year","%1 %2").arg(KGlobal::locale()->calendar()->monthName(start)) - .arg(start.year())) << "</h2>\n"; + *ts << "<h2>" << (i18n("month_year","%1 %2").tqarg(KGlobal::locale()->calendar()->monthName(start)) + .tqarg(start.year())) << "</h2>\n"; if ( KGlobal::locale()->weekStartDay() == 1 ) { start = start.addDays(1 - start.dayOfWeek()); } else { @@ -244,7 +244,7 @@ void HtmlExport::createEventList (TQTextStream *ts) *ts << " </tr>\n"; for ( TQDate dt = fromDate(); dt <= toDate(); dt = dt.addDays(1) ) { - kdDebug(5850) << "Getting events for " << dt.toString() << endl; + kdDebug(5850) << "Getting events for " << TQString(dt.toString()) << endl; Event::List events = mCalendar->events(dt, EventSortStartDate, SortDirectionAscending ); @@ -459,7 +459,7 @@ void HtmlExport::createTodo (TQTextStream *ts,Todo *todo) *ts << " <td"; if (completed) *ts << " class=\"done\""; *ts << ">\n"; - *ts << " " << i18n("%1 %").arg(todo->percentComplete()) << "\n"; + *ts << " " << i18n("%1 %").tqarg(todo->percentComplete()) << "\n"; *ts << " </td>\n"; if ( mSettings->taskDueDate() ) { @@ -618,20 +618,20 @@ void HtmlExport::createFooter( TQTextStream *ts ) TQString mail, name, credit, creditURL;*/ if (!mSettings->eMail().isEmpty()) { if (!mSettings->name().isEmpty()) - trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").arg( mSettings->eMail() ).arg( mSettings->name() ); + trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").tqarg( mSettings->eMail() ).tqarg( mSettings->name() ); else - trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").arg( mSettings->eMail() ).arg( mSettings->eMail() ); + trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").tqarg( mSettings->eMail() ).tqarg( mSettings->eMail() ); } else { if (!mSettings->name().isEmpty()) - trailer += i18n("by %1 ").arg( mSettings->name() ); + trailer += i18n("by %1 ").tqarg( mSettings->name() ); } if (!mSettings->creditName().isEmpty()) { if (!mSettings->creditURL().isEmpty()) trailer += i18n("with <a href=\"%1\">%2</a>") - .arg( mSettings->creditURL() ) - .arg( mSettings->creditName() ); + .tqarg( mSettings->creditURL() ) + .tqarg( mSettings->creditName() ); else - trailer += i18n("with %1").arg( mSettings->creditName() ); + trailer += i18n("with %1").tqarg( mSettings->creditName() ); } *ts << "<p>" << trailer << "</p>\n"; } @@ -706,7 +706,7 @@ void HtmlExport::addHoliday( const TQDate &date, const TQString &name) if ( mHolidayMap[date].isEmpty() ) { mHolidayMap[date] = name; } else { - mHolidayMap[date] = i18n("list of holidays", "%1, %2").arg(mHolidayMap[date]).arg(name); + mHolidayMap[date] = i18n("list of holidays", "%1, %2").tqarg(mHolidayMap[date]).tqarg(name); } } diff --git a/libkcal/icalformat.cpp b/libkcal/icalformat.cpp index 8c1cd3b0b..ce3f8002f 100644 --- a/libkcal/icalformat.cpp +++ b/libkcal/icalformat.cpp @@ -117,7 +117,7 @@ bool ICalFormat::save( Calendar *calendar, const TQString &fileName ) kdDebug(5800) << "ICalFormat::save() errno: " << strerror( file.status() ) << endl; setException( new ErrorFormat( ErrorFormat::SaveError, - i18n( "Error saving to '%1'." ).arg( fileName ) ) ); + i18n( "Error saving to '%1'." ).tqarg( fileName ) ) ); return false; } @@ -128,7 +128,7 @@ bool ICalFormat::save( Calendar *calendar, const TQString &fileName ) if ( !file.close() ) { kdDebug(5800) << "KSaveFile: close: status was " << file.status() << ". See errno.h." << endl; setException(new ErrorFormat(ErrorFormat::SaveError, - i18n("Could not save '%1'").arg(fileName))); + i18n("Could not save '%1'").tqarg(fileName))); return false; } 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)) { diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index bddfcb5a7..52e08080f 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -174,7 +174,7 @@ void IncidenceBase::setOrganizer( const Person &o ) void IncidenceBase::setOrganizer(const TQString &o) { TQString mail( o ); - if ( mail.startsWith("MAILTO:", false) ) + if ( mail.tqstartsWith("MAILTO:", false) ) mail = mail.remove( 0, 7 ); // split the string into full name plus email. Person organizer( mail ); diff --git a/libkcal/incidenceformatter.cpp b/libkcal/incidenceformatter.cpp index d7dd97e4d..36f988752 100644 --- a/libkcal/incidenceformatter.cpp +++ b/libkcal/incidenceformatter.cpp @@ -248,10 +248,10 @@ static TQString displayViewFormatAttendeeRoleList( Incidence *incidence, Attende } tmpStr += displayViewLinkPerson( a->email(), a->name(), a->uid() ); if ( !a->delegator().isEmpty() ) { - tmpStr += i18n(" (delegated by %1)" ).arg( a->delegator() ); + tmpStr += i18n(" (delegated by %1)" ).tqarg( a->delegator() ); } if ( !a->delegate().isEmpty() ) { - tmpStr += i18n(" (delegated to %1)" ).arg( a->delegate() ); + tmpStr += i18n(" (delegated to %1)" ).tqarg( a->delegate() ); } tmpStr += "<br>"; } @@ -359,7 +359,7 @@ static TQString displayViewFormatCategories( Incidence *incidence ) static TQString displayViewFormatCreationDate( Incidence *incidence ) { return i18n( "Creation date: %1" ). - arg( IncidenceFormatter::dateTimeToString( incidence->created(), false, true ) ); + tqarg( IncidenceFormatter::dateTimeToString( incidence->created(), false, true ) ); } static TQString displayViewFormatBirthday( Event *event ) @@ -502,14 +502,14 @@ static TQString displayViewFormatEvent( Calendar *calendar, Event *event, tmpStr += "<td><b>" + i18n( "Date:" ) + "</b></td>"; tmpStr += "<td>" + i18n("<beginDate> - <endDate>","%1 - %2"). - arg( IncidenceFormatter::dateToString( startDt, false ) ). - arg( IncidenceFormatter::dateToString( endDt, false ) ) + + tqarg( IncidenceFormatter::dateToString( startDt, false ) ). + tqarg( IncidenceFormatter::dateToString( endDt, false ) ) + "</td>"; } else { tmpStr += "<td><b>" + i18n( "Date:" ) + "</b></td>"; tmpStr += "<td>" + i18n("date as string","%1"). - arg( IncidenceFormatter::dateToString( startDt, false ) ) + + tqarg( IncidenceFormatter::dateToString( startDt, false ) ) + "</td>"; } } else { @@ -517,14 +517,14 @@ static TQString displayViewFormatEvent( Calendar *calendar, Event *event, tmpStr += "<td><b>" + i18n( "Date:" ) + "</b></td>"; tmpStr += "<td>" + i18n("<beginDate> - <endDate>","%1 - %2"). - arg( IncidenceFormatter::dateToString( startDt, false ) ). - arg( IncidenceFormatter::dateToString( endDt, false ) ) + + tqarg( IncidenceFormatter::dateToString( startDt, false ) ). + tqarg( IncidenceFormatter::dateToString( endDt, false ) ) + "</td>"; } else { tmpStr += "<td><b>" + i18n( "Date:" ) + "</b></td>"; tmpStr += "<td>" + i18n("date as string","%1"). - arg( IncidenceFormatter::dateToString( startDt, false ) ) + + tqarg( IncidenceFormatter::dateToString( startDt, false ) ) + "</td>"; tmpStr += "</tr><tr>"; @@ -532,8 +532,8 @@ static TQString displayViewFormatEvent( Calendar *calendar, Event *event, if ( event->hasEndDate() && startDt != endDt ) { tmpStr += "<td>" + i18n("<beginTime> - <endTime>","%1 - %2"). - arg( IncidenceFormatter::timeToString( startDt, true ) ). - arg( IncidenceFormatter::timeToString( endDt, true ) ) + + tqarg( IncidenceFormatter::timeToString( startDt, true ) ). + tqarg( IncidenceFormatter::timeToString( endDt, true ) ) + "</td>"; } else { tmpStr += "<td>" + @@ -750,7 +750,7 @@ static TQString displayViewFormatTodo( Calendar *calendar, Todo *todo, } else { tmpStr += "<td><b>" + i18n( "Percent Done:" ) + "</b></td>"; tmpStr += "<td>"; - tmpStr += i18n( "%1%" ).arg( todo->percentComplete() ); + tmpStr += i18n( "%1%" ).tqarg( todo->percentComplete() ); } tmpStr += "</td>"; tmpStr += "</tr>"; @@ -833,11 +833,11 @@ static TQString displayViewFormatFreeBusy( Calendar * /*calendar*/, FreeBusy *fb TQString tmpStr = htmlAddTag( "h2", htmlAddTag( "b", i18n("Free/Busy information for %1"). - arg( fb->organizer().fullName() ) ) ); + tqarg( fb->organizer().fullName() ) ) ); tmpStr += htmlAddTag( "h4", i18n("Busy times in date range %1 - %2:"). - arg( IncidenceFormatter::dateToString( fb->dtStart(), true ) ). - arg( IncidenceFormatter::dateToString( fb->dtEnd(), true ) ) ); + tqarg( IncidenceFormatter::dateToString( fb->dtStart(), true ) ). + tqarg( IncidenceFormatter::dateToString( fb->dtEnd(), true ) ) ); TQValueList<Period> periods = fb->busyPeriods(); @@ -860,19 +860,19 @@ static TQString displayViewFormatFreeBusy( Calendar * /*calendar*/, FreeBusy *fb cont += i18n("1 second", "%n seconds", dur); } text += i18n("startDate for duration", "%1 for %2"). - arg( IncidenceFormatter::dateTimeToString( per.start(), false, true ) ). - arg( cont ); + tqarg( IncidenceFormatter::dateTimeToString( per.start(), false, true ) ). + tqarg( cont ); text += "<br>"; } else { if ( per.start().date() == per.end().date() ) { text += i18n("date, fromTime - toTime ", "%1, %2 - %3"). - arg( IncidenceFormatter::dateToString( per.start().date(), true ) ). - arg( IncidenceFormatter::timeToString( per.start(), true ) ). - arg( IncidenceFormatter::timeToString( per.end(), true ) ); + tqarg( IncidenceFormatter::dateToString( per.start().date(), true ) ). + tqarg( IncidenceFormatter::timeToString( per.start(), true ) ). + tqarg( IncidenceFormatter::timeToString( per.end(), true ) ); } else { text += i18n("fromDateTime - toDateTime", "%1 - %2"). - arg( IncidenceFormatter::dateTimeToString( per.start(), false, true ) ). - arg( IncidenceFormatter::dateTimeToString( per.end(), false, true ) ); + tqarg( IncidenceFormatter::dateTimeToString( per.start(), false, true ) ). + tqarg( IncidenceFormatter::dateTimeToString( per.end(), false, true ) ); } text += "<br>"; } @@ -969,11 +969,11 @@ static TQString eventStartTimeStr( Event *event ) TQString tmp; if ( !event->doesFloat() ) { tmp = i18n( "%1: Start Date, %2: Start Time", "%1 %2" ). - arg( IncidenceFormatter::dateToString( event->dtStart(), true ), + tqarg( IncidenceFormatter::dateToString( event->dtStart(), true ), IncidenceFormatter::timeToString( event->dtStart(), true ) ); } else { tmp = i18n( "%1: Start Date", "%1 (all day)" ). - arg( IncidenceFormatter::dateToString( event->dtStart(), true ) ); + tqarg( IncidenceFormatter::dateToString( event->dtStart(), true ) ); } return tmp; } @@ -984,11 +984,11 @@ static TQString eventEndTimeStr( Event *event ) if ( event->hasEndDate() && event->dtEnd().isValid() ) { if ( !event->doesFloat() ) { tmp = i18n( "%1: End Date, %2: End Time", "%1 %2" ). - arg( IncidenceFormatter::dateToString( event->dtEnd(), true ), + tqarg( IncidenceFormatter::dateToString( event->dtEnd(), true ), IncidenceFormatter::timeToString( event->dtEnd(), true ) ); } else { tmp = i18n( "%1: End Date", "%1 (all day)" ). - arg( IncidenceFormatter::dateToString( event->dtEnd(), true ) ); + tqarg( IncidenceFormatter::dateToString( event->dtEnd(), true ) ); } } return tmp; @@ -1106,13 +1106,13 @@ static TQString rsvpRequestedStr( bool rsvpRequested, const TQString &role ) if ( role.isEmpty() ) { return i18n( "Your response is requested" ); } else { - return i18n( "Your response as <b>%1</b> is requested" ).arg( role ); + return i18n( "Your response as <b>%1</b> is requested" ).tqarg( role ); } } else { if ( role.isEmpty() ) { return i18n( "No response is necessary" ); } else { - return i18n( "No response as <b>%1</b> is necessary" ).arg( role ); + return i18n( "No response as <b>%1</b> is necessary" ).tqarg( role ); } } } @@ -1124,7 +1124,7 @@ static TQString myStatusStr( Incidence *incidence ) if ( a && a->status() != Attendee::NeedsAction && a->status() != Attendee::Delegated ) { ret = i18n( "(<b>Note</b>: the Organizer preset your response to <b>%1</b>)" ). - arg( Attendee::statusName( a->status() ) ); + tqarg( Attendee::statusName( a->status() ) ); } return ret; } @@ -1302,7 +1302,7 @@ static TQString invitationDetailsEvent( Event* event, bool noHtmlMode ) } TQString dir = ( TQApplication::reverseLayout() ? "rtl" : "ltr" ); - TQString html = TQString("<div dir=\"%1\">\n").arg(dir); + TQString html = TQString("<div dir=\"%1\">\n").tqarg(dir); html += "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n"; @@ -1413,7 +1413,7 @@ static TQString invitationDetailsTodo( Todo *todo, bool noHtmlMode ) } TQString dir = ( TQApplication::reverseLayout() ? "rtl" : "ltr" ); - TQString html = TQString("<div dir=\"%1\">\n").arg(dir); + TQString html = TQString("<div dir=\"%1\">\n").tqarg(dir); html += "<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\n"; // Invitation summary & location rows @@ -1511,19 +1511,19 @@ static TQString invitationDetailsFreeBusy( FreeBusy *fb, bool /*noHtmlMode*/ ) cont += i18n("1 second", "%n seconds", dur); } html += invitationRow( TQString(), i18n("startDate for duration", "%1 for %2") - .arg( KGlobal::locale()->formatDateTime( per.start(), false ) ) - .arg(cont) ); + .tqarg( KGlobal::locale()->formatDateTime( per.start(), false ) ) + .tqarg(cont) ); } else { TQString cont; if ( per.start().date() == per.end().date() ) { cont = i18n("date, fromTime - toTime ", "%1, %2 - %3") - .arg( KGlobal::locale()->formatDate( per.start().date() ) ) - .arg( KGlobal::locale()->formatTime( per.start().time() ) ) - .arg( KGlobal::locale()->formatTime( per.end().time() ) ); + .tqarg( KGlobal::locale()->formatDate( per.start().date() ) ) + .tqarg( KGlobal::locale()->formatTime( per.start().time() ) ) + .tqarg( KGlobal::locale()->formatTime( per.end().time() ) ); } else { cont = i18n("fromDateTime - toDateTime", "%1 - %2") - .arg( KGlobal::locale()->formatDateTime( per.start(), false ) ) - .arg( KGlobal::locale()->formatDateTime( per.end(), false ) ); + .tqarg( KGlobal::locale()->formatDateTime( per.start(), false ) ) + .tqarg( KGlobal::locale()->formatDateTime( per.end(), false ) ); } html += invitationRow( TQString(), cont ); @@ -1565,7 +1565,7 @@ static TQString invitationHeaderEvent( Event *event, Incidence *existingIncidenc case Scheduler::Request: if ( existingIncidence && event->revision() > 0 ) { return i18n( "This invitation has been updated by the organizer %1" ). - arg( event->organizer().fullName() ); + tqarg( event->organizer().fullName() ); } if ( iamOrganizer( event ) ) { return i18n( "I created this invitation" ); @@ -1578,17 +1578,17 @@ static TQString invitationHeaderEvent( Event *event, Incidence *existingIncidenc } if ( senderIsOrganizer( event, sender ) ) { if ( !orgStr.isEmpty() ) { - return i18n( "You received an invitation from %1" ).arg( orgStr ); + return i18n( "You received an invitation from %1" ).tqarg( orgStr ); } else { return i18n( "You received an invitation" ); } } else { if ( !orgStr.isEmpty() ) { return i18n( "You received an invitation from %1 as a representative of %2" ). - arg( sender, orgStr ); + tqarg( sender, orgStr ); } else { return i18n( "You received an invitation from %1 as the organizer's representative" ). - arg( sender ); + tqarg( sender ); } } } @@ -1602,7 +1602,7 @@ static TQString invitationHeaderEvent( Event *event, Incidence *existingIncidenc { if ( replyMeansCounter( event ) ) { return i18n( "%1 makes this counter proposal" ). - arg( firstAttendeeName( event, i18n( "Sender" ) ) ); + tqarg( firstAttendeeName( event, i18n( "Sender" ) ) ); } Attendee::List attendees = event->attendees(); @@ -1625,36 +1625,36 @@ static TQString invitationHeaderEvent( Event *event, Incidence *existingIncidenc switch( attendee->status() ) { case Attendee::NeedsAction: - return i18n( "%1 indicates this invitation still needs some action" ).arg( attendeeName ); + return i18n( "%1 indicates this invitation still needs some action" ).tqarg( attendeeName ); case Attendee::Accepted: if ( event->revision() > 0 ) { if ( !sender.isEmpty() ) { - return i18n( "This invitation has been updated by attendee %1" ).arg( sender ); + return i18n( "This invitation has been updated by attendee %1" ).tqarg( sender ); } else { return i18n( "This invitation has been updated by an attendee" ); } } else { if ( delegatorName.isEmpty() ) { - return i18n( "%1 accepts this invitation" ).arg( attendeeName ); + return i18n( "%1 accepts this invitation" ).tqarg( attendeeName ); } else { return i18n( "%1 accepts this invitation on behalf of %2" ). - arg( attendeeName ).arg( delegatorName ); + tqarg( attendeeName ).tqarg( delegatorName ); } } case Attendee::Tentative: if ( delegatorName.isEmpty() ) { return i18n( "%1 tentatively accepts this invitation" ). - arg( attendeeName ); + tqarg( attendeeName ); } else { return i18n( "%1 tentatively accepts this invitation on behalf of %2" ). - arg( attendeeName ).arg( delegatorName ); + tqarg( attendeeName ).tqarg( delegatorName ); } case Attendee::Declined: if ( delegatorName.isEmpty() ) { - return i18n( "%1 declines this invitation" ).arg( attendeeName ); + return i18n( "%1 declines this invitation" ).tqarg( attendeeName ); } else { return i18n( "%1 declines this invitation on behalf of %2" ). - arg( attendeeName ).arg( delegatorName ); + tqarg( attendeeName ).tqarg( delegatorName ); } case Attendee::Delegated: { TQString delegate, dummy; @@ -1664,16 +1664,16 @@ static TQString invitationHeaderEvent( Event *event, Incidence *existingIncidenc } if ( !delegate.isEmpty() ) { return i18n( "%1 has delegated this invitation to %2" ). - arg( attendeeName ) .arg( delegate ); + tqarg( attendeeName ) .tqarg( delegate ); } else { - return i18n( "%1 has delegated this invitation" ).arg( attendeeName ); + return i18n( "%1 has delegated this invitation" ).tqarg( attendeeName ); } } case Attendee::Completed: return i18n( "This invitation is now completed" ); case Attendee::InProcess: return i18n( "%1 is still processing the invitation" ). - arg( attendeeName ); + tqarg( attendeeName ); default: return i18n( "Unknown response to this invitation" ); } @@ -1682,15 +1682,15 @@ static TQString invitationHeaderEvent( Event *event, Incidence *existingIncidenc case Scheduler::Counter: return i18n( "%1 makes this counter proposal" ). - arg( firstAttendeeName( event, i18n( "Sender" ) ) ); + tqarg( firstAttendeeName( event, i18n( "Sender" ) ) ); case Scheduler::Declinecounter: return i18n( "%1 declines the counter proposal" ). - arg( firstAttendeeName( event, i18n( "Sender" ) ) ); + tqarg( firstAttendeeName( event, i18n( "Sender" ) ) ); case Scheduler::NoMethod: return i18n("Error: iMIP message with unknown method: '%1'"). - arg( msg->method() ); + tqarg( msg->method() ); } return TQString(); } @@ -1708,7 +1708,7 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, case Scheduler::Request: if ( existingIncidence && todo->revision() > 0 ) { return i18n( "This task has been updated by the organizer %1" ). - arg( todo->organizer().fullName() ); + tqarg( todo->organizer().fullName() ); } else { if ( iamOrganizer( todo ) ) { return i18n( "I created this task" ); @@ -1721,17 +1721,17 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, } if ( senderIsOrganizer( todo, sender ) ) { if ( !orgStr.isEmpty() ) { - return i18n( "You have been assigned this task by %1" ).arg( orgStr ); + return i18n( "You have been assigned this task by %1" ).tqarg( orgStr ); } else { return i18n( "You have been assigned this task" ); } } else { if ( !orgStr.isEmpty() ) { return i18n( "You have been assigned this task by %1 as a representative of %2" ). - arg( sender, orgStr ); + tqarg( sender, orgStr ); } else { return i18n( "You have been assigned this task by %1 as the organizer's representative" ). - arg( sender ); + tqarg( sender ); } } } @@ -1746,7 +1746,7 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, { if ( replyMeansCounter( todo ) ) { return i18n( "%1 makes this counter proposal" ). - arg( firstAttendeeName( todo, i18n( "Sender" ) ) ); + tqarg( firstAttendeeName( todo, i18n( "Sender" ) ) ); } Attendee::List attendees = todo->attendees(); @@ -1769,14 +1769,14 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, switch( attendee->status() ) { case Attendee::NeedsAction: - return i18n( "%1 indicates this task assignment still needs some action" ).arg( attendeeName ); + return i18n( "%1 indicates this task assignment still needs some action" ).tqarg( attendeeName ); case Attendee::Accepted: if ( todo->revision() > 0 ) { if ( !sender.isEmpty() ) { if ( todo->isCompleted() ) { - return i18n( "This task has been completed by assignee %1" ).arg( sender ); + return i18n( "This task has been completed by assignee %1" ).tqarg( sender ); } else { - return i18n( "This task has been updated by assignee %1" ).arg( sender ); + return i18n( "This task has been updated by assignee %1" ).tqarg( sender ); } } else { if ( todo->isCompleted() ) { @@ -1787,26 +1787,26 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, } } else { if ( delegatorName.isEmpty() ) { - return i18n( "%1 accepts this task" ).arg( attendeeName ); + return i18n( "%1 accepts this task" ).tqarg( attendeeName ); } else { return i18n( "%1 accepts this task on behalf of %2" ). - arg( attendeeName ).arg( delegatorName ); + tqarg( attendeeName ).tqarg( delegatorName ); } } case Attendee::Tentative: if ( delegatorName.isEmpty() ) { return i18n( "%1 tentatively accepts this task" ). - arg( attendeeName ); + tqarg( attendeeName ); } else { return i18n( "%1 tentatively accepts this task on behalf of %2" ). - arg( attendeeName ).arg( delegatorName ); + tqarg( attendeeName ).tqarg( delegatorName ); } case Attendee::Declined: if ( delegatorName.isEmpty() ) { - return i18n( "%1 declines this task" ).arg( attendeeName ); + return i18n( "%1 declines this task" ).tqarg( attendeeName ); } else { return i18n( "%1 declines this task on behalf of %2" ). - arg( attendeeName ).arg( delegatorName ); + tqarg( attendeeName ).tqarg( delegatorName ); } case Attendee::Delegated: { TQString delegate, dummy; @@ -1816,17 +1816,17 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, } if ( !delegate.isEmpty() ) { return i18n( "%1 has delegated this request for the task to %2" ). - arg( attendeeName ).arg( delegate ); + tqarg( attendeeName ).tqarg( delegate ); } else { return i18n( "%1 has delegated this request for the task" ). - arg( attendeeName ); + tqarg( attendeeName ); } } case Attendee::Completed: return i18n( "The request for this task is now completed" ); case Attendee::InProcess: return i18n( "%1 is still processing the task" ). - arg( attendeeName ); + tqarg( attendeeName ); default: return i18n( "Unknown response to this task" ); } @@ -1835,15 +1835,15 @@ static TQString invitationHeaderTodo( Todo *todo, Incidence *existingIncidence, case Scheduler::Counter: return i18n( "%1 makes this counter proposal" ). - arg( firstAttendeeName( todo, i18n( "Sender" ) ) ); + tqarg( firstAttendeeName( todo, i18n( "Sender" ) ) ); case Scheduler::Declinecounter: return i18n( "%1 declines the counter proposal" ). - arg( firstAttendeeName( todo, i18n( "Sender" ) ) ); + tqarg( firstAttendeeName( todo, i18n( "Sender" ) ) ); case Scheduler::NoMethod: return i18n( "Error: iMIP message with unknown method: '%1'" ). - arg( msg->method() ); + tqarg( msg->method() ); } return TQString(); } @@ -1908,7 +1908,7 @@ static TQString invitationHeaderJournal( Journal *journal, ScheduleMessage *msg return i18n( "Sender declines the counter proposal" ); case Scheduler::NoMethod: return i18n("Error: iMIP message with unknown method: '%1'"). - arg( msg->method() ); + tqarg( msg->method() ); } return TQString(); } @@ -1933,7 +1933,7 @@ static TQString invitationHeaderFreeBusy( FreeBusy *fb, ScheduleMessage *msg ) case Scheduler::NoMethod: default: return i18n("Error: Free/Busy iMIP message with unknown method: '%1'"). - arg( msg->method() ); + tqarg( msg->method() ); } } @@ -1967,10 +1967,10 @@ static TQString invitationAttendees( Incidence *incidence ) tmpStr += "<td>"; tmpStr += invitationPerson( a->email(), a->name(), TQString() ); if ( !a->delegator().isEmpty() ) { - tmpStr += i18n(" (delegated by %1)" ).arg( a->delegator() ); + tmpStr += i18n(" (delegated by %1)" ).tqarg( a->delegator() ); } if ( !a->delegate().isEmpty() ) { - tmpStr += i18n(" (delegated to %1)" ).arg( a->delegate() ); + tmpStr += i18n(" (delegated to %1)" ).tqarg( a->delegate() ); } tmpStr += "</td>"; tmpStr += "<td>" + a->statusStr() + "</td>"; @@ -2156,10 +2156,10 @@ class IncidenceFormatter::IncidenceCompareVisitor return; if ( oldEvent->dtStart() != newEvent->dtStart() || oldEvent->doesFloat() != newEvent->doesFloat() ) mChanges += i18n( "The invitation starting time has been changed from %1 to %2" ) - .arg( eventStartTimeStr( oldEvent ) ).arg( eventStartTimeStr( newEvent ) ); + .tqarg( eventStartTimeStr( oldEvent ) ).tqarg( eventStartTimeStr( newEvent ) ); if ( oldEvent->dtEnd() != newEvent->dtEnd() || oldEvent->doesFloat() != newEvent->doesFloat() ) mChanges += i18n( "The invitation ending time has been changed from %1 to %2" ) - .arg( eventEndTimeStr( oldEvent ) ).arg( eventEndTimeStr( newEvent ) ); + .tqarg( eventEndTimeStr( oldEvent ) ).tqarg( eventEndTimeStr( newEvent ) ); } void compareTodos( Todo *newTodo, Todo *oldTodo ) @@ -2175,10 +2175,10 @@ class IncidenceFormatter::IncidenceCompareVisitor mChanges += i18n( "The task is no longer completed" ); } if ( oldTodo->percentComplete() != newTodo->percentComplete() ) { - const TQString oldPer = i18n( "%1%" ).arg( oldTodo->percentComplete() ); - const TQString newPer = i18n( "%1%" ).arg( newTodo->percentComplete() ); + const TQString oldPer = i18n( "%1%" ).tqarg( oldTodo->percentComplete() ); + const TQString newPer = i18n( "%1%" ).tqarg( newTodo->percentComplete() ); mChanges += i18n( "The task completed percentage has changed from %1 to %2" ). - arg( oldPer, newPer ); + tqarg( oldPer, newPer ); } if ( !oldTodo->hasStartDate() && newTodo->hasStartDate() ) { @@ -2190,7 +2190,7 @@ class IncidenceFormatter::IncidenceCompareVisitor if ( oldTodo->hasStartDate() && newTodo->hasStartDate() && oldTodo->dtStart() != newTodo->dtStart() ) { mChanges += i18n( "The task starting time has been changed from %1 to %2" ). - arg( dateTimeToString( oldTodo->dtStart(), oldTodo->doesFloat(), false ), + tqarg( dateTimeToString( oldTodo->dtStart(), oldTodo->doesFloat(), false ), dateTimeToString( newTodo->dtStart(), newTodo->doesFloat(), false ) ); } @@ -2203,7 +2203,7 @@ class IncidenceFormatter::IncidenceCompareVisitor if ( oldTodo->hasDueDate() && newTodo->hasDueDate() && oldTodo->dtDue() != newTodo->dtDue() ) { mChanges += i18n( "The task due time has been changed from %1 to %2" ). - arg( dateTimeToString( oldTodo->dtDue(), oldTodo->doesFloat(), false ), + tqarg( dateTimeToString( oldTodo->dtDue(), oldTodo->doesFloat(), false ), dateTimeToString( newTodo->dtDue(), newTodo->doesFloat(), false ) ); } } @@ -2213,22 +2213,22 @@ class IncidenceFormatter::IncidenceCompareVisitor if ( !oldInc || !newInc ) return; if ( oldInc->summary() != newInc->summary() ) - mChanges += i18n( "The summary has been changed to: \"%1\"" ).arg( newInc->summary() ); + mChanges += i18n( "The summary has been changed to: \"%1\"" ).tqarg( newInc->summary() ); if ( oldInc->location() != newInc->location() ) - mChanges += i18n( "The location has been changed to: \"%1\"" ).arg( newInc->location() ); + mChanges += i18n( "The location has been changed to: \"%1\"" ).tqarg( newInc->location() ); if ( oldInc->description() != newInc->description() ) - mChanges += i18n( "The description has been changed to: \"%1\"" ).arg( newInc->description() ); + mChanges += i18n( "The description has been changed to: \"%1\"" ).tqarg( newInc->description() ); Attendee::List oldAttendees = oldInc->attendees(); Attendee::List newAttendees = newInc->attendees(); for ( Attendee::List::ConstIterator it = newAttendees.constBegin(); it != newAttendees.constEnd(); ++it ) { Attendee *oldAtt = oldInc->attendeeByMail( (*it)->email() ); if ( !oldAtt ) { - mChanges += i18n( "Attendee %1 has been added" ).arg( (*it)->fullName() ); + mChanges += i18n( "Attendee %1 has been added" ).tqarg( (*it)->fullName() ); } else { if ( oldAtt->status() != (*it)->status() ) mChanges += i18n( "The status of attendee %1 has been changed to: %2" ). - arg( (*it)->fullName() ).arg( (*it)->statusStr() ); + tqarg( (*it)->fullName() ).tqarg( (*it)->statusStr() ); } } if ( method == Scheduler::Request ) { @@ -2237,7 +2237,7 @@ class IncidenceFormatter::IncidenceCompareVisitor if ( (*it)->email() != oldInc->organizer().email() ) { Attendee *newAtt = newInc->attendeeByMail( (*it)->email() ); if ( !newAtt ) { - mChanges += i18n( "Attendee %1 has been removed" ).arg( (*it)->fullName() ); + mChanges += i18n( "Attendee %1 has been removed" ).tqarg( (*it)->fullName() ); } } } @@ -2255,12 +2255,12 @@ TQString InvitationFormatterHelper::makeLink( const TQString &id, const TQString { if ( !id.startsWith( "ATTACH:" ) ) { TQString res = TQString( "<a href=\"%1\"><b>%2</b></a>" ). - arg( generateLinkURL( id ), text ); + tqarg( generateLinkURL( id ), text ); return res; } else { // draw the attachment links in non-bold face TQString res = TQString( "<a href=\"%1\">%2</a>" ). - arg( generateLinkURL( id ), text ); + tqarg( generateLinkURL( id ), text ); return res; } } @@ -2431,7 +2431,7 @@ TQString IncidenceFormatter::formatICalInvitationHelper( TQString invitation, TQString tableHead = TQString::tqfromLatin1( "<div align=\"center\">" "<table width=\"80%\" cellpadding=\"1\" cellspacing=\"0\" %1>" - "<tr><td>").arg(tableStyle); + "<tr><td>").tqarg(tableStyle); html += tableHead; InvitationHeaderVisitor headerVisitor; @@ -2459,7 +2459,7 @@ TQString IncidenceFormatter::formatICalInvitationHelper( TQString invitation, if ( compareVisitor.act( incBase, existingIncidence, msg->method() ) ) { html += "<p align=\"left\">"; if ( !sender.isEmpty() ) { - html += i18n( "The following changes have been made by %1:" ).arg( sender ); + html += i18n( "The following changes have been made by %1:" ).tqarg( sender ); } else { html += i18n( "The following changes have been made by an attendee:" ); } @@ -2514,10 +2514,10 @@ TQString IncidenceFormatter::formatICalInvitationHelper( TQString invitation, if ( rsvpRec && inc ) { if ( inc->revision() == 0 ) { html += i18n( "Your <b>%1</b> response has already been recorded" ). - arg( ea->statusStr() ); + tqarg( ea->statusStr() ); } else { html += i18n( "Your status for this invitation is <b>%1</b>" ). - arg( ea->statusStr() ); + tqarg( ea->statusStr() ); } rsvpReq = false; } else if ( msg->method() == Scheduler::Cancel ) { @@ -2627,7 +2627,7 @@ TQString IncidenceFormatter::formatICalInvitationHelper( TQString invitation, if ( ea && ( ea->status() != Attendee::NeedsAction ) && ( ea->status() == a->status() ) ) { if ( inc && inc->revision() > 0 ) { html += "<br><u><i>"; - html += i18n( "The response has been recorded [%1]" ).arg( ea->statusStr() ); + html += i18n( "The response has been recorded [%1]" ).tqarg( ea->statusStr() ); html += "</i></u>"; } } else { @@ -2837,7 +2837,7 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef ) ICalFormat calFormat; Event* event = new Event(); - if( parser.openDevice( &buf ) ) { + if( parser.openDevice( &TQT_TQIODEVICE_OBJECT(buf) ) ) { KTNEFMessage* tnefMsg = parser.message(); //TQMap<int,KTNEFProperty*> props = parser.message()->properties(); @@ -3218,20 +3218,20 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Event *event, const tmp = "<br>" + i18n("Event start", "<i>From:</i> %1"); if (event->doesFloat()) - ret += tmp.arg( IncidenceFormatter::dateToString( startDt, false ).tqreplace(" ", " ") ); + ret += tmp.tqarg( IncidenceFormatter::dateToString( startDt, false ).tqreplace(" ", " ") ); else - ret += tmp.arg( IncidenceFormatter::dateToString( startDt ).tqreplace(" ", " ") ); + ret += tmp.tqarg( IncidenceFormatter::dateToString( startDt ).tqreplace(" ", " ") ); tmp = "<br>" + i18n("Event end","<i>To:</i> %1"); if (event->doesFloat()) - ret += tmp.arg( IncidenceFormatter::dateToString( endDt, false ).tqreplace(" ", " ") ); + ret += tmp.tqarg( IncidenceFormatter::dateToString( endDt, false ).tqreplace(" ", " ") ); else - ret += tmp.arg( IncidenceFormatter::dateToString( endDt ).tqreplace(" ", " ") ); + ret += tmp.tqarg( IncidenceFormatter::dateToString( endDt ).tqreplace(" ", " ") ); } else { ret += "<br>"+i18n("<i>Date:</i> %1"). - arg( IncidenceFormatter::dateToString( startDt, false ).tqreplace(" ", " ") ); + tqarg( IncidenceFormatter::dateToString( startDt, false ).tqreplace(" ", " ") ); if ( !event->doesFloat() ) { const TQString dtStartTime = IncidenceFormatter::timeToString( startDt, true ).tqreplace( " ", " " ); @@ -3240,11 +3240,11 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Event *event, const if ( dtStartTime == dtEndTime ) { // to prevent 'Time: 17:00 - 17:00' tmp = "<br>" + i18n("time for event, to prevent ugly line breaks", "<i>Time:</i> %1"). - arg( dtStartTime ); + tqarg( dtStartTime ); } else { tmp = "<br>" + i18n("time range for event, to prevent ugly line breaks", "<i>Time:</i> %1 - %2"). - arg( dtStartTime, dtEndTime ); + tqarg( dtStartTime, dtEndTime ); } ret += tmp; } @@ -3267,7 +3267,7 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Todo *todo, const TQ } ret += "<br>" + i18n("<i>Start:</i> %1"). - arg( IncidenceFormatter::dateTimeToString( startDt, floats, false ). + tqarg( IncidenceFormatter::dateTimeToString( startDt, floats, false ). tqreplace( " ", " " ) ); } @@ -3282,7 +3282,7 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Todo *todo, const TQ } ret += "<br>" + i18n("<i>Due:</i> %1"). - arg( IncidenceFormatter::dateTimeToString( dueDt, floats, false ). + tqarg( IncidenceFormatter::dateTimeToString( dueDt, floats, false ). tqreplace( " ", " " ) ); } @@ -3300,7 +3300,7 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Todo *todo, const TQ ret += todo->completedStr().tqreplace( " ", " " ); } else { ret += "<i>" + i18n( "Percent Done:" ) + "</i>" + " "; - ret += i18n( "%1%" ).arg( todo->percentComplete() ); + ret += i18n( "%1%" ).tqarg( todo->percentComplete() ); } return ret; @@ -3312,7 +3312,7 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Journal*journal ) if (journal->dtStart().isValid() ) { ret += "<br>" + i18n("<i>Date:</i> %1"). - arg( IncidenceFormatter::dateToString( journal->dtStart(), false ) ); + tqarg( IncidenceFormatter::dateToString( journal->dtStart(), false ) ); } return ret; } @@ -3320,9 +3320,9 @@ TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( Journal*journal ) TQString IncidenceFormatter::ToolTipVisitor::dateRangeText( FreeBusy *fb ) { TQString tmp( "<br>" + i18n("<i>Period start:</i> %1") ); - TQString ret = tmp.arg( KGlobal::locale()->formatDateTime( fb->dtStart() ) ); + TQString ret = tmp.tqarg( KGlobal::locale()->formatDateTime( fb->dtStart() ) ); tmp = "<br>" + i18n("<i>Period start:</i> %1"); - ret += tmp.arg( KGlobal::locale()->formatDateTime( fb->dtEnd() ) ); + ret += tmp.tqarg( KGlobal::locale()->formatDateTime( fb->dtEnd() ) ); return ret; } @@ -3349,7 +3349,7 @@ bool IncidenceFormatter::ToolTipVisitor::visit( Journal *journal ) bool IncidenceFormatter::ToolTipVisitor::visit( FreeBusy *fb ) { mResult = "<qt><b>" + i18n("Free/Busy information for %1") - .arg(fb->organizer().fullName()) + "</b>"; + .tqarg(fb->organizer().fullName()) + "</b>"; mResult += dateRangeText( fb ); mResult += "</qt>"; return !mResult.isEmpty(); @@ -3405,10 +3405,10 @@ static TQString tooltipFormatAttendeeRoleList( Incidence *incidence, Attendee::R } tmpStr += tooltipPerson( a->email(), a->name() ); if ( !a->delegator().isEmpty() ) { - tmpStr += i18n(" (delegated by %1)" ).arg( a->delegator() ); + tmpStr += i18n(" (delegated by %1)" ).tqarg( a->delegator() ); } if ( !a->delegate().isEmpty() ) { - tmpStr += i18n(" (delegated to %1)" ).arg( a->delegate() ); + tmpStr += i18n(" (delegated to %1)" ).tqarg( a->delegate() ); } tmpStr += sep; i++; @@ -3588,13 +3588,13 @@ static TQString mailBodyIncidence( Incidence *incidence ) { TQString body; if ( !incidence->summary().isEmpty() ) { - body += i18n("Summary: %1\n").arg( incidence->summary() ); + body += i18n("Summary: %1\n").tqarg( incidence->summary() ); } if ( !incidence->organizer().isEmpty() ) { - body += i18n("Organizer: %1\n").arg( incidence->organizer().fullName() ); + body += i18n("Organizer: %1\n").tqarg( incidence->organizer().fullName() ); } if ( !incidence->location().isEmpty() ) { - body += i18n("Location: %1\n").arg( incidence->location() ); + body += i18n("Location: %1\n").tqarg( incidence->location() ); } return body; } @@ -3608,26 +3608,26 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event ) mResult = mailBodyIncidence( event ); mResult += i18n("Start Date: %1\n"). - arg( IncidenceFormatter::dateToString( event->dtStart(), true ) ); + tqarg( IncidenceFormatter::dateToString( event->dtStart(), true ) ); if ( !event->doesFloat() ) { mResult += i18n("Start Time: %1\n"). - arg( IncidenceFormatter::timeToString( event->dtStart(), true ) ); + tqarg( IncidenceFormatter::timeToString( event->dtStart(), true ) ); } if ( event->dtStart() != event->dtEnd() ) { mResult += i18n("End Date: %1\n"). - arg( IncidenceFormatter::dateToString( event->dtEnd(), true ) ); + tqarg( IncidenceFormatter::dateToString( event->dtEnd(), true ) ); } if ( !event->doesFloat() ) { mResult += i18n("End Time: %1\n"). - arg( IncidenceFormatter::timeToString( event->dtEnd(), true ) ); + tqarg( IncidenceFormatter::timeToString( event->dtEnd(), true ) ); } if ( event->doesRecur() ) { Recurrence *recur = event->recurrence(); // TODO: Merge these two to one of the form "Recurs every 3 days" mResult += i18n("Recurs: %1\n") - .arg( recurrence[ recur->recurrenceType() ] ); + .tqarg( recurrence[ recur->recurrenceType() ] ); mResult += i18n("Frequency: %1\n") - .arg( event->recurrence()->frequency() ); + .tqarg( event->recurrence()->frequency() ); if ( recur->duration() > 0 ) { mResult += i18n ("Repeats once", "Repeats %n times", recur->duration()); @@ -3641,7 +3641,7 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event ) } else { endstr = KGlobal::locale()->formatDateTime( recur->endDateTime() ); } - mResult += i18n("Repeat until: %1\n").arg( endstr ); + mResult += i18n("Repeat until: %1\n").tqarg( endstr ); } else { mResult += i18n("Repeats forever\n"); } @@ -3652,13 +3652,13 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Event *event ) mResult += i18n("This recurring meeting has been cancelled on the following days:\n"); DateList::ConstIterator ex_iter; for ( ex_iter = exceptions.begin(); ex_iter != exceptions.end(); ++ex_iter ) { - mResult += i18n(" %1\n").arg( KGlobal::locale()->formatDate(* ex_iter ) ); + mResult += i18n(" %1\n").tqarg( KGlobal::locale()->formatDate(* ex_iter ) ); } } } TQString details = event->description(); if ( !details.isEmpty() ) { - mResult += i18n("Details:\n%1\n").arg( details ); + mResult += i18n("Details:\n%1\n").tqarg( details ); } return !mResult.isEmpty(); } @@ -3669,23 +3669,23 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Todo *todo ) if ( todo->hasStartDate() ) { mResult += i18n("Start Date: %1\n"). - arg( IncidenceFormatter::dateToString( todo->dtStart( false ), true ) ); + tqarg( IncidenceFormatter::dateToString( todo->dtStart( false ), true ) ); if ( !todo->doesFloat() ) { mResult += i18n("Start Time: %1\n"). - arg( IncidenceFormatter::timeToString( todo->dtStart( false ),true ) ); + tqarg( IncidenceFormatter::timeToString( todo->dtStart( false ),true ) ); } } if ( todo->hasDueDate() ) { mResult += i18n("Due Date: %1\n"). - arg( IncidenceFormatter::dateToString( todo->dtDue(), true ) ); + tqarg( IncidenceFormatter::dateToString( todo->dtDue(), true ) ); if ( !todo->doesFloat() ) { mResult += i18n("Due Time: %1\n"). - arg( IncidenceFormatter::timeToString( todo->dtDue(), true ) ); + tqarg( IncidenceFormatter::timeToString( todo->dtDue(), true ) ); } } TQString details = todo->description(); if ( !details.isEmpty() ) { - mResult += i18n("Details:\n%1\n").arg( details ); + mResult += i18n("Details:\n%1\n").tqarg( details ); } return !mResult.isEmpty(); } @@ -3694,13 +3694,13 @@ bool IncidenceFormatter::MailBodyVisitor::visit( Journal *journal ) { mResult = mailBodyIncidence( journal ); mResult += i18n("Date: %1\n"). - arg( IncidenceFormatter::dateToString( journal->dtStart(), true ) ); + tqarg( IncidenceFormatter::dateToString( journal->dtStart(), true ) ); if ( !journal->doesFloat() ) { mResult += i18n("Time: %1\n"). - arg( IncidenceFormatter::timeToString( journal->dtStart(), true ) ); + tqarg( IncidenceFormatter::timeToString( journal->dtStart(), true ) ); } if ( !journal->description().isEmpty() ) - mResult += i18n("Text of the journal:\n%1\n").arg( journal->description() ); + mResult += i18n("Text of the journal:\n%1\n").tqarg( journal->description() ); return !mResult.isEmpty(); } @@ -3813,9 +3813,9 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) case Recurrence::rMinutely: recurStr = i18n( "Recurs every minute", "Recurs every %n minutes", recur->frequency() ); if ( recur->duration() != -1 ) { - txt = i18n( "%1 until %2" ).arg( recurStr ).arg( recurEnd( incidence ) ); + txt = i18n( "%1 until %2" ).tqarg( recurStr ).tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } @@ -3824,9 +3824,9 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) case Recurrence::rHourly: recurStr = i18n( "Recurs hourly", "Recurs every %n hours", recur->frequency() ); if ( recur->duration() != -1 ) { - txt = i18n( "%1 until %2" ).arg( recurStr ).arg( recurEnd( incidence ) ); + txt = i18n( "%1 until %2" ).tqarg( recurStr ).tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } @@ -3836,9 +3836,9 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) recurStr = i18n( "Recurs daily", "Recurs every %n days", recur->frequency() ); if ( recur->duration() != -1 ) { - txt = i18n( "%1 until %2" ).arg( recurStr ).arg( recurEnd( incidence ) ); + txt = i18n( "%1 until %2" ).tqarg( recurStr ).tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } @@ -3863,13 +3863,13 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) } if ( recur->duration() != -1 ) { txt = i18n( "%1 on %2 until %3" ). - arg( recurStr ).arg( dayNames ).arg( recurEnd( incidence ) ); + tqarg( recurStr ).tqarg( dayNames ).tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } - txt = i18n( "%1 on %2" ).arg( recurStr ).arg( dayNames ); + txt = i18n( "%1 on %2" ).tqarg( recurStr ).tqarg( dayNames ); return txt; } case Recurrence::rMonthlyPos: @@ -3880,19 +3880,19 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) KCal::RecurrenceRule::WDayPos rule = recur->monthPositions()[0]; if ( recur->duration() != -1 ) { txt = i18n( "%1 on the %2 %3 until %4" ). - arg( recurStr ). - arg( dayList[rule.pos() + 31] ). - arg( calSys->weekDayName( rule.day(), false ) ). - arg( recurEnd( incidence ) ); + tqarg( recurStr ). + tqarg( dayList[rule.pos() + 31] ). + tqarg( calSys->weekDayName( rule.day(), false ) ). + tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } txt = i18n( "%1 on the %2 %3" ). - arg( recurStr ). - arg( dayList[rule.pos() + 31] ). - arg( calSys->weekDayName( rule.day(), false ) ); + tqarg( recurStr ). + tqarg( dayList[rule.pos() + 31] ). + tqarg( calSys->weekDayName( rule.day(), false ) ); return txt; } else { return recurStr; @@ -3907,15 +3907,15 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) int days = recur->monthDays()[0]; if ( recur->duration() != -1 ) { txt = i18n( "%1 on the %2 day until %3" ). - arg( recurStr ). - arg( dayList[days + 31] ). - arg( recurEnd( incidence ) ); + tqarg( recurStr ). + tqarg( dayList[days + 31] ). + tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } - txt = i18n( "%1 on the %2 day" ).arg( recurStr ).arg( dayList[days + 31] ); + txt = i18n( "%1 on the %2 day" ).tqarg( recurStr ).tqarg( dayList[days + 31] ); return txt; } else { return recurStr; @@ -3929,33 +3929,33 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) if ( recur->duration() != -1 ) { if ( !recur->yearDates().isEmpty() ) { txt = i18n( "%1 on %2 %3 until %4" ). - arg( recurStr ). - arg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). - arg( dayList[ recur->yearDates()[0] + 31 ] ). - arg( recurEnd( incidence ) ); + tqarg( recurStr ). + tqarg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). + tqarg( dayList[ recur->yearDates()[0] + 31 ] ). + tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } } if ( !recur->yearDates().isEmpty() ) { txt = i18n( "%1 on %2 %3" ). - arg( recurStr ). - arg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). - arg( dayList[ recur->yearDates()[0] + 31 ] ); + tqarg( recurStr ). + tqarg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). + tqarg( dayList[ recur->yearDates()[0] + 31 ] ); return txt; } else { if ( !recur->yearMonths().isEmpty() ) { txt = i18n( "Recurs yearly on %1 %2" ). - arg( calSys->monthName( recur->yearMonths()[0], + tqarg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). - arg( dayList[ recur->startDate().day() + 31 ] ); + tqarg( dayList[ recur->startDate().day() + 31 ] ); } else { txt = i18n( "Recurs yearly on %1 %2" ). - arg( calSys->monthName( recur->startDate().month(), + tqarg( calSys->monthName( recur->startDate().month(), recur->startDate().year() ) ). - arg( dayList[ recur->startDate().day() + 31 ] ); + tqarg( dayList[ recur->startDate().day() + 31 ] ); } return txt; } @@ -3967,15 +3967,15 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) if ( !recur->yearDays().isEmpty() ) { if ( recur->duration() != -1 ) { txt = i18n( "%1 on day %2 until %3" ). - arg( recurStr ). - arg( recur->yearDays()[0] ). - arg( recurEnd( incidence ) ); + tqarg( recurStr ). + tqarg( recur->yearDays()[0] ). + tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } - txt = i18n( "%1 on day %2" ).arg( recurStr ).arg( recur->yearDays()[0] ); + txt = i18n( "%1 on day %2" ).tqarg( recurStr ).tqarg( recur->yearDays()[0] ); return txt; } else { return recurStr; @@ -3989,21 +3989,21 @@ TQString IncidenceFormatter::recurrenceString( Incidence *incidence ) KCal::RecurrenceRule::WDayPos rule = recur->yearPositions()[0]; if ( recur->duration() != -1 ) { txt = i18n( "%1 on the %2 %3 of %4 until %5" ). - arg( recurStr ). - arg( dayList[rule.pos() + 31] ). - arg( calSys->weekDayName( rule.day(), false ) ). - arg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). - arg( recurEnd( incidence ) ); + tqarg( recurStr ). + tqarg( dayList[rule.pos() + 31] ). + tqarg( calSys->weekDayName( rule.day(), false ) ). + tqarg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ). + tqarg( recurEnd( incidence ) ); if ( recur->duration() > 0 ) { - txt += i18n( " (%1 occurrences)" ).arg( recur->duration() ); + txt += i18n( " (%1 occurrences)" ).tqarg( recur->duration() ); } return txt; } txt = i18n( "%1 on the %2 %3 of %4" ). - arg( recurStr ). - arg( dayList[rule.pos() + 31] ). - arg( calSys->weekDayName( rule.day(), false ) ). - arg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ); + tqarg( recurStr ). + tqarg( dayList[rule.pos() + 31] ). + tqarg( calSys->weekDayName( rule.day(), false ) ). + tqarg( calSys->monthName( recur->yearMonths()[0], recur->startDate().year() ) ); return txt; } else { return recurStr; @@ -4184,18 +4184,18 @@ TQStringList IncidenceFormatter::reminderStringList( Incidence *incidence, bool } if ( offset == 0 ) { if ( !atStr.isEmpty() ) { - remStr = i18n( "reminder occurs at datetime", "at %1" ).arg( atStr ); + remStr = i18n( "reminder occurs at datetime", "at %1" ).tqarg( atStr ); } } else { - remStr = offsetStr.arg( secs2Duration( offset ) ); + remStr = offsetStr.tqarg( secs2Duration( offset ) ); } if ( alarm->repeatCount() > 0 ) { TQString countStr = i18n( "repeats once", "repeats %n times", alarm->repeatCount() ); TQString intervalStr = i18n( "interval is N days/hours/minutes", "interval is %1" ). - arg( secs2Duration( alarm->snoozeTime().asSeconds() ) ); + tqarg( secs2Duration( alarm->snoozeTime().asSeconds() ) ); TQString repeatStr = i18n( "(repeat string, interval string)", "(%1, %2)" ). - arg( countStr, intervalStr ); + tqarg( countStr, intervalStr ); remStr = remStr + ' ' + repeatStr; } diff --git a/libkcal/person.cpp b/libkcal/person.cpp index 3d7c2b42d..c5e15c15f 100644 --- a/libkcal/person.cpp +++ b/libkcal/person.cpp @@ -88,7 +88,7 @@ void Person::setName(const TQString &name) void Person::setEmail(const TQString &email) { - if ( email.startsWith( "mailto:", false ) ) { + if ( email.tqstartsWith( "mailto:", false ) ) { mEmail = email.mid(7); } else { mEmail = email; diff --git a/libkcal/qtopiaformat.cpp b/libkcal/qtopiaformat.cpp index 964e48c52..b7f13fd54 100644 --- a/libkcal/qtopiaformat.cpp +++ b/libkcal/qtopiaformat.cpp @@ -294,7 +294,7 @@ bool TQtopiaFormat::save( Calendar *calendar, const TQString &fileName ) TQFile file( fileName ); if (!file.open( IO_WriteOnly ) ) { setException(new ErrorFormat(ErrorFormat::SaveError, - i18n("Could not open file '%1'").arg(fileName))); + i18n("Could not open file '%1'").tqarg(fileName))); return false; } TQTextStream ts( &file ); diff --git a/libkcal/recurrencerule.h b/libkcal/recurrencerule.h index a93062d08..14335a0b6 100644 --- a/libkcal/recurrencerule.h +++ b/libkcal/recurrencerule.h @@ -30,7 +30,7 @@ #include "libkcal_export.h" template <class T> -Q_INLINE_TEMPLATES void qSortUnique( TQValueList<T> &lst ) +TQ_INLINE_TEMPLATES void qSortUnique( TQValueList<T> &lst ) { qHeapSort( lst ); if ( lst.isEmpty() ) return; @@ -51,7 +51,7 @@ Q_INLINE_TEMPLATES void qSortUnique( TQValueList<T> &lst ) } template <class T> -Q_INLINE_TEMPLATES int findGE( const TQValueList<T> &lst, const T &value, int start ) +TQ_INLINE_TEMPLATES int findGE( const TQValueList<T> &lst, const T &value, int start ) { // Do a binary search to find the first item >= value int st = start - 1; @@ -69,7 +69,7 @@ Q_INLINE_TEMPLATES int findGE( const TQValueList<T> &lst, const T &value, int st } template <class T> -Q_INLINE_TEMPLATES int findGT( const TQValueList<T> &lst, const T &value, int start ) +TQ_INLINE_TEMPLATES int findGT( const TQValueList<T> &lst, const T &value, int start ) { // Do a binary search to find the first item > value int st = start - 1; @@ -87,7 +87,7 @@ Q_INLINE_TEMPLATES int findGT( const TQValueList<T> &lst, const T &value, int st } template <class T> -Q_INLINE_TEMPLATES int findLE( const TQValueList<T> &lst, const T &value, int start ) +TQ_INLINE_TEMPLATES int findLE( const TQValueList<T> &lst, const T &value, int start ) { // Do a binary search to find the last item <= value int st = start - 1; @@ -104,7 +104,7 @@ Q_INLINE_TEMPLATES int findLE( const TQValueList<T> &lst, const T &value, int st } template <class T> -Q_INLINE_TEMPLATES int findLT( const TQValueList<T> &lst, const T &value, int start ) +TQ_INLINE_TEMPLATES int findLT( const TQValueList<T> &lst, const T &value, int start ) { // Do a binary search to find the last item < value int st = start - 1; @@ -121,7 +121,7 @@ Q_INLINE_TEMPLATES int findLT( const TQValueList<T> &lst, const T &value, int st } template <class T> -Q_INLINE_TEMPLATES int findSorted( const TQValueList<T> &lst, const T &value, int start ) +TQ_INLINE_TEMPLATES int findSorted( const TQValueList<T> &lst, const T &value, int start ) { // Do a binary search to find the item == value int st = start - 1; @@ -138,7 +138,7 @@ Q_INLINE_TEMPLATES int findSorted( const TQValueList<T> &lst, const T &value, in } template <class T> -Q_INLINE_TEMPLATES int removeSorted( TQValueList<T> &lst, const T &value, int start ) +TQ_INLINE_TEMPLATES int removeSorted( TQValueList<T> &lst, const T &value, int start ) { int i = findSorted( lst, value, start ); if ( i >= 0 ) { @@ -148,7 +148,7 @@ Q_INLINE_TEMPLATES int removeSorted( TQValueList<T> &lst, const T &value, int st } template <class T> -Q_INLINE_TEMPLATES bool containsSorted( const TQValueList<T> &lst, const T &value ) +TQ_INLINE_TEMPLATES bool containsSorted( const TQValueList<T> &lst, const T &value ) { return findSorted( lst, value, 0 ) >= 0; } diff --git a/libkcal/resourcecached.cpp b/libkcal/resourcecached.cpp index 0e2d8d56d..09d1eef7b 100644 --- a/libkcal/resourcecached.cpp +++ b/libkcal/resourcecached.cpp @@ -689,12 +689,12 @@ void ResourceCached::addInfoText( TQString &txt ) const if ( mLastLoad.isValid() ) { txt += "<br>"; txt += i18n("Last loaded: %1") - .arg( KGlobal::locale()->formatDateTime( mLastLoad ) ); + .tqarg( KGlobal::locale()->formatDateTime( mLastLoad ) ); } if ( mLastSave.isValid() ) { txt += "<br>"; txt += i18n("Last saved: %1") - .arg( KGlobal::locale()->formatDateTime( mLastSave ) ); + .tqarg( KGlobal::locale()->formatDateTime( mLastSave ) ); } } diff --git a/libkcal/resourcecachedconfig.cpp b/libkcal/resourcecachedconfig.cpp index 5224ff8b2..b230f5bb9 100644 --- a/libkcal/resourcecachedconfig.cpp +++ b/libkcal/resourcecachedconfig.cpp @@ -41,7 +41,7 @@ ResourceCachedReloadConfig::ResourceCachedReloadConfig( TQWidget *tqparent, { TQBoxLayout *topLayout = new TQVBoxLayout( this ); - mGroup = new TQButtonGroup( 1, Horizontal, i18n("Automatic Reload"), this ); + mGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Automatic Reload"), this ); topLayout->addWidget( mGroup ); new TQRadioButton( i18n("Never"), mGroup ); new TQRadioButton( i18n("On startup"), mGroup ); @@ -81,7 +81,7 @@ ResourceCachedSaveConfig::ResourceCachedSaveConfig( TQWidget *tqparent, { TQBoxLayout *topLayout = new TQVBoxLayout( this ); - mGroup = new TQButtonGroup( 1, Horizontal, i18n("Automatic Save"), this ); + mGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Automatic Save"), this ); topLayout->addWidget( mGroup ); new TQRadioButton( i18n("Never"), mGroup ); new TQRadioButton( i18n("On exit"), mGroup ); diff --git a/libkcal/resourcecalendar.cpp b/libkcal/resourcecalendar.cpp index 9f611e75e..d398357d7 100644 --- a/libkcal/resourcecalendar.cpp +++ b/libkcal/resourcecalendar.cpp @@ -74,7 +74,7 @@ TQString ResourceCalendar::infoText() const KRES::Factory *factory = KRES::Factory::self( "calendar" ); TQString t = factory->typeName( type() ); - txt += i18n("Type: %1").arg( t ); + txt += i18n("Type: %1").tqarg( t ); addInfoText( txt ); @@ -172,7 +172,7 @@ void ResourceCalendar::loadError( const TQString &err ) mReceivedLoadError = true; - TQString msg = i18n("Error while loading %1.\n") .arg( resourceName() ); + TQString msg = i18n("Error while loading %1.\n") .tqarg( resourceName() ); if ( !err.isEmpty() ) { msg += err; } @@ -209,7 +209,7 @@ void ResourceCalendar::saveError( const TQString &err ) mReceivedSaveError = true; - TQString msg = i18n("Error while saving %1.\n") .arg( resourceName() ); + TQString msg = i18n("Error while saving %1.\n") .tqarg( resourceName() ); if ( !err.isEmpty() ) { msg += err; } diff --git a/libkcal/resourcelocalconfig.cpp b/libkcal/resourcelocalconfig.cpp index 65b3cfe76..29d879da5 100644 --- a/libkcal/resourcelocalconfig.cpp +++ b/libkcal/resourcelocalconfig.cpp @@ -51,7 +51,7 @@ ResourceLocalConfig::ResourceLocalConfig( TQWidget* tqparent, const char* name mainLayout->addWidget( label, 1, 0 ); mainLayout->addWidget( mURL, 1, 1 ); - formatGroup = new TQButtonGroup( 1, Horizontal, i18n( "Calendar Format" ), this ); + formatGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Calendar Format" ), this ); icalButton = new TQRadioButton( i18n("iCalendar"), formatGroup ); vcalButton = new TQRadioButton( i18n("vCalendar"), formatGroup ); @@ -88,7 +88,7 @@ void ResourceLocalConfig::saveSettings( KRES::Resource *resource ) for( int i = 0; file.exists(); ++i ) file.setName( saveFolder + "/std" + TQString::number(i) + ".ics" ); - KMessageBox::information( this, i18n( "You did not specify a URL for this resource. Therefore, the resource will be saved in %1. It is still possible to change this location by editing the resource properties." ).arg( file.name() ) ); + KMessageBox::information( this, i18n( "You did not specify a URL for this resource. Therefore, the resource will be saved in %1. It is still possible to change this location by editing the resource properties." ).tqarg( file.name() ) ); url = file.name(); } diff --git a/libkcal/scheduler.cpp b/libkcal/scheduler.cpp index 54709eb49..481a33a6a 100644 --- a/libkcal/scheduler.cpp +++ b/libkcal/scheduler.cpp @@ -60,7 +60,7 @@ TQString ScheduleMessage::statusName(ScheduleMessage::tqStatus status) case RequestUpdate: return i18n("Updated Request"); default: - return i18n("Unknown tqStatus: %1").arg(TQString::number(status)); + return i18n("Unknown tqStatus: %1").tqarg(TQString::number(status)); } } @@ -590,12 +590,12 @@ bool Scheduler::acceptReply(IncidenceBase *incidence,ScheduleMessage::tqStatus / bool attendeeAdded = false; for ( Attendee::List::ConstIterator it = attendeesNew.constBegin(); it != attendeesNew.constEnd(); ++it ) { Attendee* attNew = *it; - TQString msg = i18n("%1 wants to attend %2 but was not invited.").arg( attNew->fullName() ) - .arg( ev ? ev->summary() : to->summary() ); + TQString msg = i18n("%1 wants to attend %2 but was not invited.").tqarg( attNew->fullName() ) + .tqarg( ev ? ev->summary() : to->summary() ); if ( !attNew->delegator().isEmpty() ) - msg = i18n("%1 wants to attend %2 on behalf of %3.").arg( attNew->fullName() ) - .arg( ev ? ev->summary() : to->summary() ) - .arg( attNew->delegator() ); + msg = i18n("%1 wants to attend %2 on behalf of %3.").tqarg( attNew->fullName() ) + .tqarg( ev ? ev->summary() : to->summary() ) + .tqarg( attNew->delegator() ); if ( KMessageBox::questionYesNo( 0, msg, i18n("Uninvited attendee"), KGuiItem(i18n("Accept Attendance")), KGuiItem(i18n("Reject Attendance")) ) != KMessageBox::Yes ) diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index 40736a906..973f8c227 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp @@ -703,7 +703,7 @@ Todo *VCalFormat::VTodoToEvent(VObject *vtodo) int emailPos1, emailPos2; if ((emailPos1 = tmpStr.tqfind('<')) > 0) { // both email address and name - emailPos2 = tmpStr.findRev('>'); + emailPos2 = tmpStr.tqfindRev('>'); a = new Attendee(tmpStr.left(emailPos1 - 1), tmpStr.mid(emailPos1 + 1, emailPos2 - (emailPos1 + 1))); @@ -919,7 +919,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) int emailPos1, emailPos2; if ((emailPos1 = tmpStr.tqfind('<')) > 0) { // both email address and name - emailPos2 = tmpStr.findRev('>'); + emailPos2 = tmpStr.tqfindRev('>'); a = new Attendee(tmpStr.left(emailPos1 - 1), tmpStr.mid(emailPos1 + 1, emailPos2 - (emailPos1 + 1))); @@ -1013,7 +1013,7 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) // Immediately after the type is the frequency int index = tmpStr.tqfind(' '); - int last = tmpStr.findRev(' ') + 1; // find last entry + int last = tmpStr.tqfindRev(' ') + 1; // find last entry int rFreq = tmpStr.mid(typelen, (index-1)).toInt(); ++index; // advance to beginning of stuff after freq |