From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../plugins/kaddressbook/kaddressbook_plugin.cpp | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kontact/plugins/kaddressbook/kaddressbook_plugin.cpp') diff --git a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp index e2f5a706f..be1fb08de 100644 --- a/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp +++ b/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp @@ -22,8 +22,8 @@ without including the source code for Qt in the source distribution. */ -#include -#include +#include +#include #include #include @@ -51,21 +51,21 @@ typedef KGenericFactory< KAddressbookPlugin, Kontact::Core > KAddressbookPluginF K_EXPORT_COMPONENT_FACTORY( libkontact_kaddressbookplugin, KAddressbookPluginFactory( "kontact_kaddressbookplugin" ) ) -KAddressbookPlugin::KAddressbookPlugin( Kontact::Core *core, const char *, const QStringList& ) +KAddressbookPlugin::KAddressbookPlugin( Kontact::Core *core, const char *, const TQStringList& ) : Kontact::Plugin( core, core, "kaddressbook" ), mStub( 0 ) { setInstance( KAddressbookPluginFactory::instance() ); insertNewAction( new KAction( i18n( "New Contact..." ), "identity", - CTRL+SHIFT+Key_C, this, SLOT( slotNewContact() ), actionCollection(), + CTRL+SHIFT+Key_C, this, TQT_SLOT( slotNewContact() ), actionCollection(), "new_contact" ) ); insertNewAction( new KAction( i18n( "&New Distribution List..." ), "kontact_contacts", 0, this, - SLOT( slotNewDistributionList() ), actionCollection(), "new_distributionlist" ) ); + TQT_SLOT( slotNewDistributionList() ), actionCollection(), "new_distributionlist" ) ); insertSyncAction( new KAction( i18n( "Synchronize Contacts" ), "reload", - 0, this, SLOT( slotSyncContacts() ), actionCollection(), + 0, this, TQT_SLOT( slotSyncContacts() ), actionCollection(), "kaddressbook_sync" ) ); mUniqueAppWatcher = new Kontact::UniqueAppWatcher( new Kontact::UniqueAppHandlerFactory(), this ); @@ -86,16 +86,16 @@ KParts::ReadOnlyPart* KAddressbookPlugin::createPart() return part; } -QStringList KAddressbookPlugin::configModules() const +TQStringList KAddressbookPlugin::configModules() const { - QStringList modules; + TQStringList modules; modules << "PIM/kabconfig.desktop" << "PIM/kabldapconfig.desktop"; return modules; } -QStringList KAddressbookPlugin::invisibleToolbarActions() const +TQStringList KAddressbookPlugin::invisibleToolbarActions() const { - return QStringList( "file_new_contact" ); + return TQStringList( "file_new_contact" ); } KAddressBookIface_stub *KAddressbookPlugin::interface() @@ -121,10 +121,10 @@ void KAddressbookPlugin::slotNewDistributionList() void KAddressbookPlugin::slotSyncContacts() { DCOPRef ref( "kmail", "KMailICalIface" ); - ref.send( "triggerSync", QString("Contact") ); + ref.send( "triggerSync", TQString("Contact") ); } -bool KAddressbookPlugin::createDCOPInterface( const QString& serviceType ) +bool KAddressbookPlugin::createDCOPInterface( const TQString& serviceType ) { if ( serviceType == "DCOP/AddressBook" ) { Q_ASSERT( mStub ); @@ -143,15 +143,15 @@ bool KAddressbookPlugin::isRunningStandalone() return mUniqueAppWatcher->isRunningStandalone(); } -bool KAddressbookPlugin::canDecodeDrag( QMimeSource *mimeSource ) +bool KAddressbookPlugin::canDecodeDrag( TQMimeSource *mimeSource ) { - return QTextDrag::canDecode( mimeSource ) || + return TQTextDrag::canDecode( mimeSource ) || KPIM::MailListDrag::canDecode( mimeSource ); } #include -void KAddressbookPlugin::processDropEvent( QDropEvent *event ) +void KAddressbookPlugin::processDropEvent( TQDropEvent *event ) { KPIM::MailList mails; if ( KPIM::MailListDrag::decode( event, mails ) ) { @@ -162,7 +162,7 @@ void KAddressbookPlugin::processDropEvent( QDropEvent *event ) KPIM::MailSummary mail = mails.first(); KMailIface_stub kmailIface( "kmail", "KMailIface" ); - QString sFrom = kmailIface.getFrom( mail.serialNumber() ); + TQString sFrom = kmailIface.getFrom( mail.serialNumber() ); if ( !sFrom.isEmpty() ) { KAddrBookExternal::addEmail( sFrom, core() ); @@ -176,13 +176,13 @@ void KAddressbookPlugin::processDropEvent( QDropEvent *event ) } -void KAddressbookPlugin::loadProfile( const QString& directory ) +void KAddressbookPlugin::loadProfile( const TQString& directory ) { DCOPRef ref( "kaddressbook", "KAddressBookIface" ); ref.send( "loadProfile", directory ); } -void KAddressbookPlugin::saveToProfile( const QString& directory ) const +void KAddressbookPlugin::saveToProfile( const TQString& directory ) const { DCOPRef ref( "kaddressbook", "KAddressBookIface" ); ref.send( "saveToProfile", directory ); -- cgit v1.2.1