summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/test
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/plugins/test')
-rw-r--r--kontact/plugins/test/test_part.cpp24
-rw-r--r--kontact/plugins/test/test_part.h6
-rw-r--r--kontact/plugins/test/test_plugin.cpp4
-rw-r--r--kontact/plugins/test/test_plugin.h2
4 files changed, 18 insertions, 18 deletions
diff --git a/kontact/plugins/test/test_part.cpp b/kontact/plugins/test/test_part.cpp
index 6477d142..a32e734f 100644
--- a/kontact/plugins/test/test_part.cpp
+++ b/kontact/plugins/test/test_part.cpp
@@ -25,8 +25,8 @@
#include "test_part.h"
#include "kaddressbookiface_stub.h"
-#include <qtextedit.h>
-#include <qcombobox.h>
+#include <tqtextedit.h>
+#include <tqcombobox.h>
#include "sidebarextension.h"
@@ -41,21 +41,21 @@
#include <kservice.h>
-TestPart::TestPart(QObject *parent, const char *name) // ## parentWidget
+TestPart::TestPart(TQObject *parent, const char *name) // ## parentWidget
: KParts::ReadOnlyPart(parent, name)
{
setInstance( new KInstance("testpart") ); // ## memleak
m_edit = new QTextEdit;
setWidget(m_edit);
setXMLFile("testpartui.rc");
- new KAction( "new contact (test)", 0, this, SLOT( newContact() ), actionCollection(), "test_deleteevent" );
+ new KAction( "new contact (test)", 0, this, TQT_SLOT( newContact() ), actionCollection(), "test_deleteevent" );
m_kab_stub = 0L;
- new KParts::SideBarExtension(new QComboBox(this), this, "sbe");
+ new KParts::SideBarExtension(new TQComboBox(this), this, "sbe");
kapp->dcopClient()->setNotifications( true );
- connect( kapp->dcopClient(), SIGNAL( applicationRemoved( const QCString&)),
- this, SLOT( unregisteredFromDCOP( const QCString& )) );
+ connect( kapp->dcopClient(), TQT_SIGNAL( applicationRemoved( const TQCString&)),
+ this, TQT_SLOT( unregisteredFromDCOP( const TQCString& )) );
}
TestPart::~TestPart()
@@ -83,21 +83,21 @@ bool TestPart::connectToAddressBook()
{
if ( !m_kab_stub )
{
- QString error;
- QCString dcopService;
- int result = KDCOPServiceStarter::self()->findServiceFor( "DCOP/AddressBook", QString::null, QString::null, &error, &dcopService );
+ TQString error;
+ TQCString dcopService;
+ int result = KDCOPServiceStarter::self()->findServiceFor( "DCOP/AddressBook", TQString::null, TQString::null, &error, &dcopService );
if ( result != 0 ) {
// You might want to show "error" (if not empty) here, using e.g. KMessageBox
return false;
}
// TODO document the required named for the dcop interfaces e.g. "CalendarIface".
- QCString dcopObjectId = "KAddressBookIface";
+ TQCString dcopObjectId = "KAddressBookIface";
m_kab_stub = new KAddressBookIface_stub(kapp->dcopClient(), dcopService, dcopObjectId);
}
return m_kab_stub != 0L;
}
-void TestPart::unregisteredFromDCOP( const QCString& appId )
+void TestPart::unregisteredFromDCOP( const TQCString& appId )
{
if ( m_kab_stub && m_kab_stub->app() == appId )
{
diff --git a/kontact/plugins/test/test_part.h b/kontact/plugins/test/test_part.h
index 8f2a927c..8d9c0ba7 100644
--- a/kontact/plugins/test/test_part.h
+++ b/kontact/plugins/test/test_part.h
@@ -37,7 +37,7 @@ class TestPart : public KParts::ReadOnlyPart
public:
- TestPart(QObject *parent=0, const char *name=0);
+ TestPart(TQObject *parent=0, const char *name=0);
~TestPart();
protected:
@@ -48,11 +48,11 @@ protected:
protected slots:
void newContact();
- void unregisteredFromDCOP( const QCString& );
+ void unregisteredFromDCOP( const TQCString& );
private:
- QTextEdit *m_edit;
+ TQTextEdit *m_edit;
KAddressBookIface_stub *m_kab_stub;
};
diff --git a/kontact/plugins/test/test_plugin.cpp b/kontact/plugins/test/test_plugin.cpp
index 62bd74bd..93001d2f 100644
--- a/kontact/plugins/test/test_plugin.cpp
+++ b/kontact/plugins/test/test_plugin.cpp
@@ -34,12 +34,12 @@
typedef KGenericFactory< TestPlugin, Kontact::Core > TestPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libkptestplugin, TestPluginFactory( "kptestplugin" ) )
-TestPlugin::TestPlugin(Kontact::Core *_core, const char *name, const QStringList &)
+TestPlugin::TestPlugin(Kontact::Core *_core, const char *name, const TQStringList &)
: Kontact::Plugin(_core, _core, name)
{
setInstance(TestPluginFactory::instance());
- insertNewAction(new KAction("Test", 0, this, SLOT(slotTestMenu()), actionCollection(), "edit_test"));
+ insertNewAction(new KAction("Test", 0, this, TQT_SLOT(slotTestMenu()), actionCollection(), "edit_test"));
setXMLFile("kptestplugin.rc");
}
diff --git a/kontact/plugins/test/test_plugin.h b/kontact/plugins/test/test_plugin.h
index 35b60283..9d1a0e8e 100644
--- a/kontact/plugins/test/test_plugin.h
+++ b/kontact/plugins/test/test_plugin.h
@@ -37,7 +37,7 @@ class TestPlugin : public Kontact::Plugin
public:
- TestPlugin(Kontact::Core *core, const char *name, const QStringList &);
+ TestPlugin(Kontact::Core *core, const char *name, const TQStringList &);
~TestPlugin();
protected: