From 9f51f088d1c9b4ad562f6e1107b2ccb3159b44ce Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:32:19 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/otrplugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/otrplugin.cpp') diff --git a/src/otrplugin.cpp b/src/otrplugin.cpp index 93f1720..c99b316 100644 --- a/src/otrplugin.cpp +++ b/src/otrplugin.cpp @@ -18,7 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include +#include #include #include #include @@ -143,7 +143,7 @@ OTRPlugin::OTRPlugin( TQObject *parent, const char *name, const TQStringList & / //adding menu to contaclists menubar and contacts popup menu TQStringList policies; policies << i18n("&Default") << i18n("Al&ways") << i18n("&Opportunistic") << i18n("&Manual") << i18n("Ne&ver"); - otrPolicyMenu = new KSelectAction( i18n( "&OTR Policy" ), TQString::tqfromLatin1("kopete_otr"), 0, actionCollection(), "otr_policy" ); + otrPolicyMenu = new KSelectAction( i18n( "&OTR Policy" ), TQString::fromLatin1("kopete_otr"), 0, actionCollection(), "otr_policy" ); otrPolicyMenu->setItems( policies ); otrPolicyMenu->popupMenu()->insertSeparator( 1 ); otrPolicyMenu->setEnabled( false ); @@ -222,9 +222,9 @@ void OTRPlugin::slotEnableOtr( Kopete::ChatSession *session, bool enable ){ TQString body = otrlChatInterface->getDefaultQuery( session->account()->accountId() ); Kopete::Message msg1( session->account()->myself(), session->members().getFirst(), TQString( body ), Kopete::Message::Outbound ); if( otrlChatInterface->privState( session ) > 0 ){ - body = i18n("Attempting to refresh the OTR session with %1...").tqarg( otrlChatInterface->formatContact( session->members().getFirst()->contactId() ) ); + body = i18n("Attempting to refresh the OTR session with %1...").arg( otrlChatInterface->formatContact( session->members().getFirst()->contactId() ) ); } else { - body = i18n("Attempting to start a private OTR session with %1...").tqarg( otrlChatInterface->formatContact( session->members().getFirst()->contactId() ) ); + body = i18n("Attempting to start a private OTR session with %1...").arg( otrlChatInterface->formatContact( session->members().getFirst()->contactId() ) ); } Kopete::Message msg2( session->account()->myself(), session->members().getFirst(), body, Kopete::Message::Internal, Kopete::Message::RichText ); -- cgit v1.2.1