From 9cc13dcbb01a96c9e60a07ca63c61d24b374f50d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:50 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12. --- .../kmail/bodypartformatter/attendeeselector.cpp | 6 ++-- plugins/kmail/bodypartformatter/text_calendar.cpp | 40 +++++++++++----------- plugins/kmail/bodypartformatter/text_vcard.cpp | 4 +-- plugins/kmail/bodypartformatter/text_xdiff.cpp | 8 ++--- .../kmail/bodypartformatter/ui_attendeeselector.ui | 4 +-- 5 files changed, 31 insertions(+), 31 deletions(-) (limited to 'plugins') diff --git a/plugins/kmail/bodypartformatter/attendeeselector.cpp b/plugins/kmail/bodypartformatter/attendeeselector.cpp index ca733e7ea..5311858f0 100644 --- a/plugins/kmail/bodypartformatter/attendeeselector.cpp +++ b/plugins/kmail/bodypartformatter/attendeeselector.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include AttendeeSelector::AttendeeSelector(TQWidget * parent) : KDialogBase( parent, 0, true, i18n("Select Attendees"), Ok|Cancel, NoDefault, true ) @@ -34,8 +34,8 @@ AttendeeSelector::AttendeeSelector(TQWidget * parent) ui = new AttendeeSelectorWidget( this ); setMainWidget( ui ); - TQGridLayout *layout = static_cast( ui->layout() ); - layout->setMargin( 0 ); + TQGridLayout *tqlayout = static_cast( ui->tqlayout() ); + tqlayout->setMargin( 0 ); ui->addButton->setGuiItem( KStdGuiItem::add() ); connect( ui->addButton, TQT_SIGNAL(clicked()), TQT_SLOT(addClicked()) ); diff --git a/plugins/kmail/bodypartformatter/text_calendar.cpp b/plugins/kmail/bodypartformatter/text_calendar.cpp index ec585dcc1..6a8e01996 100644 --- a/plugins/kmail/bodypartformatter/text_calendar.cpp +++ b/plugins/kmail/bodypartformatter/text_calendar.cpp @@ -78,7 +78,7 @@ #include #include -#include +#include #include @@ -190,7 +190,7 @@ class Formatter : public KMail::Interface::BodyPartFormatter } }; -static TQString directoryForStatus( Attendee::PartStat status ) +static TQString directoryFortqStatus( Attendee::PartStat status ) { TQString dir; switch ( status ) { @@ -344,16 +344,16 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler TQString subject; switch ( type ) { case Answer: - subject = i18n( "Answer: %1" ).arg( summary ); + subject = i18n( "Answer: %1" ).tqarg( summary ); break; case Delegation: - subject = i18n( "Delegated: %1" ).arg( summary ); + subject = i18n( "Delegated: %1" ).tqarg( summary ); break; case Forward: - subject = i18n( "Forwarded: %1" ).arg( summary ); + subject = i18n( "Forwarded: %1" ).tqarg( summary ); break; case DeclineCounter: - subject = i18n( "Declined Counter Proposal: %1" ).arg( summary ); + subject = i18n( "Declined Counter Proposal: %1" ).tqarg( summary ); break; } @@ -367,7 +367,7 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler TQString recv = to; if ( recv.isEmpty() ) recv = incidence->organizer().fullName(); - TQString statusString = directoryForStatus( status ); //it happens to return the right strings + TQString statusString = directoryFortqStatus( status ); //it happens to return the right strings return callback.mailICal( recv, msg, subject, statusString, type != Forward ); } @@ -426,7 +426,7 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler bool cancelPastInvites( Incidence *incidence, const TQString &path ) const { TQString warnStr; - TQDateTime now = TQDateTime::currentDateTime(); + TQDateTime now = TQDateTime::tqcurrentDateTime(); TQDate today = now.date(); Event * const event = dynamic_cast( incidence ); Todo * const todo = dynamic_cast( incidence ); @@ -434,13 +434,13 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler Q_ASSERT( event ); if ( !event->doesFloat() ) { if ( event->dtEnd() < now ) { - warnStr = i18n( "\"%1\" occurred already." ).arg( event->summary() ); + warnStr = i18n( "\"%1\" occurred already." ).tqarg( event->summary() ); } else if ( event->dtStart() <= now && now <= event->dtEnd() ) { - warnStr = i18n( "\"%1\" is currently in-progress." ).arg( event->summary() ); + warnStr = i18n( "\"%1\" is currently in-progress." ).tqarg( event->summary() ); } } else { if ( event->dtEnd().date() < today ) { - warnStr = i18n( "\"%1\" occurred already." ).arg( event->summary() ); + warnStr = i18n( "\"%1\" occurred already." ).tqarg( event->summary() ); } else if ( event->dtStart().date() <= today && today <= event->dtEnd().date() ) { warnStr = i18n( "\"%1\", happening all day today, is currently in-progress." ). arg( event->summary() ); @@ -451,19 +451,19 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler if ( !todo->doesFloat() ) { if ( todo->hasDueDate() ) { if ( todo->dtDue() < now ) { - warnStr = i18n( "\"%1\" is past due." ).arg( todo->summary() ); + warnStr = i18n( "\"%1\" is past due." ).tqarg( todo->summary() ); } else if ( todo->hasStartDate() && todo->dtStart() <= now && now <= todo->dtDue() ) { - warnStr = i18n( "\"%1\" is currently in-progress." ).arg( todo->summary() ); + warnStr = i18n( "\"%1\" is currently in-progress." ).tqarg( todo->summary() ); } } else if ( todo->hasStartDate() ) { if ( todo->dtStart() < now ) { - warnStr = i18n( "\"%1\" has already started." ).arg( todo->summary() ); + warnStr = i18n( "\"%1\" has already started." ).tqarg( todo->summary() ); } } } else { if ( todo->hasDueDate() ) { if ( todo->dtDue().date() < today) { - warnStr = i18n( "\"%1\" is past due." ).arg( todo->summary() ); + warnStr = i18n( "\"%1\" is past due." ).tqarg( todo->summary() ); } else if ( todo->hasStartDate() && todo->dtStart().date() <= today && today <= todo->dtDue().date() ) { warnStr = i18n( "\"%1\", happening all-day today, is currently in-progress." ). @@ -526,12 +526,12 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler } else if ( path.startsWith( "ATTACH:" ) ) { return false; } else { - queryStr = i18n( "%1?" ).arg( path ); + queryStr = i18n( "%1?" ).tqarg( path ); } if ( KMessageBox::warningYesNo( 0, - i18n( "%1\n%2" ).arg( warnStr ).arg( queryStr ) ) == KMessageBox::No ) { + i18n( "%1\n%2" ).tqarg( warnStr ).tqarg( queryStr ) ) == KMessageBox::No ) { return true; } } @@ -567,7 +567,7 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler } // First, save it for KOrganizer to handle - TQString dir = directoryForStatus( status ); + TQString dir = directoryFortqStatus( status ); if ( dir.isEmpty() ) return true; // unknown status if ( status != Attendee::Delegated ) // we do that below for delegated incidences @@ -649,7 +649,7 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler if ( status == Attendee::Delegated ) { incidence = icalToString( iCal ); myself = findMyself( incidence, receiver ); - myself->seStatus( status ); + myself->setqStatus( status ); myself->setDelegate( delegateString ); TQString name, email; KPIM::getNameAndMail( delegateString, name, email ); @@ -820,7 +820,7 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler case KMessageBox::No: // means "send email" summary = incidence->summary(); if ( !summary.isEmpty() ) { - summary = i18n( "Re: %1" ).arg( summary ); + summary = i18n( "Re: %1" ).tqarg( summary ); } KApplication::kApplication()->invokeMailer( incidence->organizer().email(), summary ); diff --git a/plugins/kmail/bodypartformatter/text_vcard.cpp b/plugins/kmail/bodypartformatter/text_vcard.cpp index ec3a3bfe5..c99fd1c08 100644 --- a/plugins/kmail/bodypartformatter/text_vcard.cpp +++ b/plugins/kmail/bodypartformatter/text_vcard.cpp @@ -104,7 +104,7 @@ namespace { writer->queue( contact ); TQString addToLinkText = i18n( "[Add this contact to the addressbook]" ); - TQString op = TQString::fromLatin1( "addToAddressBook:%1" ).arg( count ); + TQString op = TQString::tqfromLatin1( "addToAddressBook:%1" ).tqarg( count ); writer->queue( "
makeLink( op ) + @@ -195,7 +195,7 @@ namespace { if ( a.realName().isEmpty() ) { return i18n( "Add this contact to the address book." ); } else { - return i18n( "Add \"%1\" to the address book." ).arg( a.realName() ); + return i18n( "Add \"%1\" to the address book." ).tqarg( a.realName() ); } } diff --git a/plugins/kmail/bodypartformatter/text_xdiff.cpp b/plugins/kmail/bodypartformatter/text_xdiff.cpp index 7fd053472..df89306f6 100644 --- a/plugins/kmail/bodypartformatter/text_xdiff.cpp +++ b/plugins/kmail/bodypartformatter/text_xdiff.cpp @@ -50,7 +50,7 @@ #include #include #include -#include +#include namespace { @@ -71,19 +71,19 @@ namespace { - TQString addedLineStyle = TQString::fromLatin1( + TQString addedLineStyle = TQString::tqfromLatin1( "style=\"" "color: green;\""); TQString fileAddStyle( "style=\"font-weight: bold; " "color: green; \"" ); - TQString removedLineStyle = TQString::fromLatin1( + TQString removedLineStyle = TQString::tqfromLatin1( "style=\"" "color: red;\""); TQString fileRemoveStyle( "style=\"font-weight: bold; " "color: red ;\"" ); - TQString tableStyle = TQString::fromLatin1( + TQString tableStyle = TQString::tqfromLatin1( "style=\"" "text-align: -khtml-auto; " "border: solid black 1px; " diff --git a/plugins/kmail/bodypartformatter/ui_attendeeselector.ui b/plugins/kmail/bodypartformatter/ui_attendeeselector.ui index e74f4dce0..7ccbcc742 100644 --- a/plugins/kmail/bodypartformatter/ui_attendeeselector.ui +++ b/plugins/kmail/bodypartformatter/ui_attendeeselector.ui @@ -48,7 +48,7 @@ attendeeEdit - + 250 0 @@ -65,7 +65,7 @@ Expanding - + 20 140 -- cgit v1.2.1