diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-22 20:23:50 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-22 20:23:50 -0600 |
commit | 3a044decb0a5d7be822c888b2d5374573d7df96e (patch) | |
tree | ddf4681e0233c25203fc927596aa7b3bdb5f2efa /languages/cpp/app_templates/kofficepart | |
parent | 5c0390ebaa2be82d8684af5a6bc2b16740f4cc1b (diff) | |
download | tdevelop-3a044decb0a5d7be822c888b2d5374573d7df96e.tar.gz tdevelop-3a044decb0a5d7be822c888b2d5374573d7df96e.zip |
Rename KInstance and KAboutData to avoid conflicts with KDE4
Diffstat (limited to 'languages/cpp/app_templates/kofficepart')
3 files changed, 15 insertions, 15 deletions
diff --git a/languages/cpp/app_templates/kofficepart/kopart_aboutdata.h b/languages/cpp/app_templates/kofficepart/kopart_aboutdata.h index ab66d088..20893271 100644 --- a/languages/cpp/app_templates/kofficepart/kopart_aboutdata.h +++ b/languages/cpp/app_templates/kofficepart/kopart_aboutdata.h @@ -12,10 +12,10 @@ static const char description[] = I18N_NOOP("%{APPNAME} KOffice Program"); static const char version[] = "%{VERSION}"; -KAboutData * new%{APPNAME}AboutData() +TDEAboutData * new%{APPNAME}AboutData() { - KAboutData * aboutData=new KAboutData( "%{APPNAMELC}", I18N_NOOP("%{APPNAME}"), - version, description, KAboutData::License_%{LICENSE}, + TDEAboutData * aboutData=new TDEAboutData( "%{APPNAMELC}", I18N_NOOP("%{APPNAME}"), + version, description, TDEAboutData::License_%{LICENSE}, "(c) %{YEAR}, %{AUTHOR}"); aboutData->addAuthor("%{AUTHOR}",0, "%{EMAIL}"); return aboutData; diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp index 86287a3f..7d2d20d1 100644 --- a/languages/cpp/app_templates/kofficepart/kopart_factory.cpp +++ b/languages/cpp/app_templates/kofficepart/kopart_factory.cpp @@ -20,8 +20,8 @@ extern "C" } }; -KInstance* %{APPNAME}Factory::s_global = 0L; -KAboutData* %{APPNAME}Factory::s_aboutData = 0L; +TDEInstance* %{APPNAME}Factory::s_global = 0L; +TDEAboutData* %{APPNAME}Factory::s_aboutData = 0L; %{APPNAME}Factory::%{APPNAME}Factory( TQObject* parent, const char* name ) : KoFactory( parent, name ) @@ -52,7 +52,7 @@ KParts::Part* %{APPNAME}Factory::createPartObject( TQWidget *parentWidget, const return part; } -KAboutData* %{APPNAME}Factory::aboutData() +TDEAboutData* %{APPNAME}Factory::aboutData() { if ( !s_aboutData ) // Change this, of course @@ -60,11 +60,11 @@ KAboutData* %{APPNAME}Factory::aboutData() return s_aboutData; } -KInstance* %{APPNAME}Factory::global() +TDEInstance* %{APPNAME}Factory::global() { if ( !s_global ) { - s_global = new KInstance( aboutData() ); + s_global = new TDEInstance( aboutData() ); // Add any application-specific resource directories here // Tell the iconloader about share/apps/koffice/icons diff --git a/languages/cpp/app_templates/kofficepart/kopart_factory.h b/languages/cpp/app_templates/kofficepart/kopart_factory.h index 2bb18133..2d5a56e2 100644 --- a/languages/cpp/app_templates/kofficepart/kopart_factory.h +++ b/languages/cpp/app_templates/kofficepart/kopart_factory.h @@ -8,8 +8,8 @@ #include <koFactory.h> -class KInstance; -class KAboutData; +class TDEInstance; +class TDEAboutData; class %{APPNAME}Factory : public KoFactory { @@ -21,14 +21,14 @@ public: virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() ); - static KInstance* global(); + static TDEInstance* global(); - // _Creates_ a KAboutData but doesn't keep ownership - static KAboutData* aboutData(); + // _Creates_ a TDEAboutData but doesn't keep ownership + static TDEAboutData* aboutData(); private: - static KInstance* s_global; - static KAboutData* s_aboutData; + static TDEInstance* s_global; + static TDEAboutData* s_aboutData; }; #endif |