From 3a044decb0a5d7be822c888b2d5374573d7df96e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 22 Jan 2013 20:23:50 -0600 Subject: Rename KInstance and KAboutData to avoid conflicts with KDE4 --- languages/cpp/app_templates/kpartplugin/plugin_app.cpp | 6 +++--- languages/cpp/app_templates/kpartplugin/plugin_app.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'languages/cpp/app_templates/kpartplugin') diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp index 61e3ca0e..1812b5e2 100644 --- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp +++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp @@ -88,10 +88,10 @@ TQObject* %{APPNAME}Factory::createObject( TQObject* parent, const char* name, c return new Plugin%{APPNAME}( parent, name ); } -KInstance *%{APPNAME}Factory::instance() +TDEInstance *%{APPNAME}Factory::instance() { if ( !s_instance ) - s_instance = new KInstance( "%{APPNAMELC}" ); + s_instance = new TDEInstance( "%{APPNAMELC}" ); return s_instance; } @@ -104,6 +104,6 @@ extern "C" } } -KInstance* %{APPNAME}Factory::s_instance = 0L; +TDEInstance* %{APPNAME}Factory::s_instance = 0L; #include "plugin_%{APPNAMELC}.moc" diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.h b/languages/cpp/app_templates/kpartplugin/plugin_app.h index 8423f56e..132ce724 100644 --- a/languages/cpp/app_templates/kpartplugin/plugin_app.h +++ b/languages/cpp/app_templates/kpartplugin/plugin_app.h @@ -27,10 +27,10 @@ public: virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); - static KInstance* instance(); + static TDEInstance* instance(); private: - static KInstance* s_instance; + static TDEInstance* s_instance; }; #endif // _PLUGIN_%{APPNAMEUC}_H_ -- cgit v1.2.1