From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/app_templates/dcopservice/dcopservice.cpp | 12 ++++++------ languages/cpp/app_templates/dcopservice/dcopservice.h | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'languages/cpp/app_templates/dcopservice') diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.cpp b/languages/cpp/app_templates/dcopservice/dcopservice.cpp index a23da01b..32f32c65 100644 --- a/languages/cpp/app_templates/dcopservice/dcopservice.cpp +++ b/languages/cpp/app_templates/dcopservice/dcopservice.cpp @@ -7,7 +7,7 @@ %{APPNAME}::%{APPNAME}() : DCOPObject("serviceInterface") { kdDebug() << "Starting new service... " << endl; - m_List = QStringList(); + m_List = TQStringList(); } %{APPNAME}::~%{APPNAME}() @@ -15,25 +15,25 @@ kdDebug() << "Going away... " << endl; } -QString %{APPNAME}::string(int idx) +TQString %{APPNAME}::string(int idx) { return *m_List.at(idx); } -QStringList %{APPNAME}::list() +TQStringList %{APPNAME}::list() { return m_List; } -void %{APPNAME}::add(QString arg) +void %{APPNAME}::add(TQString arg) { kdDebug() << "Adding " << arg << " to the list" << endl; m_List << arg; } -bool %{APPNAME}::remove(QString arg) +bool %{APPNAME}::remove(TQString arg) { - QStringList::Iterator it = m_List.find(arg); + TQStringList::Iterator it = m_List.find(arg); if (it != m_List.end()) { m_List.remove(it); diff --git a/languages/cpp/app_templates/dcopservice/dcopservice.h b/languages/cpp/app_templates/dcopservice/dcopservice.h index 4e9eda87..59aa3c28 100644 --- a/languages/cpp/app_templates/dcopservice/dcopservice.h +++ b/languages/cpp/app_templates/dcopservice/dcopservice.h @@ -3,8 +3,8 @@ #ifndef _%{APPNAME}_H #define _%{APPNAME}_H -#include -#include +#include +#include #include class %{APPNAME} : public DCOPObject @@ -12,7 +12,7 @@ class %{APPNAME} : public DCOPObject K_DCOP private: - QStringList m_List; + TQStringList m_List; public: %{APPNAME}(); @@ -20,13 +20,13 @@ class %{APPNAME} : public DCOPObject ~%{APPNAME}(); k_dcop: - QString string(int); + TQString string(int); - QStringList list(); + TQStringList list(); - void add(QString); + void add(TQString); - bool remove(QString); + bool remove(TQString); bool exit(); -- cgit v1.2.1