summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/kaddressbook/kaddressbook_plugin.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/plugins/kaddressbook/kaddressbook_plugin.cpp')
-rw-r--r--kontact/plugins/kaddressbook/kaddressbook_plugin.cpp36
1 files changed, 18 insertions, 18 deletions
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 <qwidget.h>
-#include <qdragobject.h>
+#include <tqwidget.h>
+#include <tqdragobject.h>
#include <kaction.h>
#include <kapplication.h>
@@ -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<KABUniqueAppHandler>(), 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 <dcopref.h>
-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 );