From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/app_templates/kcmodule/module.cpp | 4 ++-- languages/cpp/app_templates/kcmodule/module.h | 3 ++- languages/cpp/app_templates/kcmodule/src-Makefile.am | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'languages/cpp/app_templates/kcmodule') diff --git a/languages/cpp/app_templates/kcmodule/module.cpp b/languages/cpp/app_templates/kcmodule/module.cpp index bb15b923..4e9d3ca5 100644 --- a/languages/cpp/app_templates/kcmodule/module.cpp +++ b/languages/cpp/app_templates/kcmodule/module.cpp @@ -11,8 +11,8 @@ typedef KGenericFactory<%{APPNAME}, TQWidget> %{APPNAME}Factory; K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}")) -%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&) - : KCModule(parent, name), myAboutData(0) +%{APPNAME}::%{APPNAME}(TQWidget *tqparent, const char *name, const TQStringList&) + : KCModule(tqparent, name), myAboutData(0) { // place widgets here load(); diff --git a/languages/cpp/app_templates/kcmodule/module.h b/languages/cpp/app_templates/kcmodule/module.h index 7f539c60..57542aae 100644 --- a/languages/cpp/app_templates/kcmodule/module.h +++ b/languages/cpp/app_templates/kcmodule/module.h @@ -9,9 +9,10 @@ class %{APPNAME}: public KCModule { Q_OBJECT + TQ_OBJECT public: - %{APPNAME}( TQWidget *parent=0, const char *name=0, const TQStringList& = TQStringList() ); + %{APPNAME}( TQWidget *tqparent=0, const char *name=0, const TQStringList& = TQStringList() ); ~%{APPNAME}(); virtual void load(); diff --git a/languages/cpp/app_templates/kcmodule/src-Makefile.am b/languages/cpp/app_templates/kcmodule/src-Makefile.am index e5d30776..6efe685a 100644 --- a/languages/cpp/app_templates/kcmodule/src-Makefile.am +++ b/languages/cpp/app_templates/kcmodule/src-Makefile.am @@ -13,5 +13,5 @@ xdg_apps_DATA = %{APPNAMELC}.desktop messages: rc.cpp - $(EXTRACTRC) `find -name \*.ui -o -name \*.rc` > rc.cpp + $(EXTRACTRC) `tqfind -name \*.ui -o -name \*.rc` > rc.cpp $(XGETTEXT) *.cpp -o $(podir)/kcm%{APPNAMELC}.pot -- cgit v1.2.1