diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/test | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/test')
-rw-r--r-- | kontact/plugins/test/test_part.cpp | 24 | ||||
-rw-r--r-- | kontact/plugins/test/test_part.h | 6 | ||||
-rw-r--r-- | kontact/plugins/test/test_plugin.cpp | 4 | ||||
-rw-r--r-- | kontact/plugins/test/test_plugin.h | 2 |
4 files changed, 18 insertions, 18 deletions
diff --git a/kontact/plugins/test/test_part.cpp b/kontact/plugins/test/test_part.cpp index 6477d1420..a32e734f5 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 8f2a927c1..8d9c0ba7f 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 62bd74bd2..93001d2f7 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 35b60283d..9d1a0e8ea 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: |