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/kpartapp/app_part.cpp | |
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/kpartapp/app_part.cpp')
-rw-r--r-- | languages/cpp/app_templates/kpartapp/app_part.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp index 1f3992af..80c9f967 100644 --- a/languages/cpp/app_templates/kpartapp/app_part.cpp +++ b/languages/cpp/app_templates/kpartapp/app_part.cpp @@ -144,12 +144,12 @@ void %{APPNAME}Part::fileSaveAs() // It's usually safe to leave the factory code alone.. with the -// notable exception of the KAboutData data +// notable exception of the TDEAboutData data #include <kaboutdata.h> #include <klocale.h> -KInstance* %{APPNAME}PartFactory::s_instance = 0L; -KAboutData* %{APPNAME}PartFactory::s_about = 0L; +TDEInstance* %{APPNAME}PartFactory::s_instance = 0L; +TDEAboutData* %{APPNAME}PartFactory::s_about = 0L; %{APPNAME}PartFactory::%{APPNAME}PartFactory() : KParts::Factory() @@ -178,13 +178,13 @@ KParts::Part* %{APPNAME}PartFactory::createPartObject( TQWidget *parentWidget, c return obj; } -KInstance* %{APPNAME}PartFactory::instance() +TDEInstance* %{APPNAME}PartFactory::instance() { if( !s_instance ) { - s_about = new KAboutData("%{APPNAMELC}part", I18N_NOOP("%{APPNAME}Part"), "%{VERSION}"); + s_about = new TDEAboutData("%{APPNAMELC}part", I18N_NOOP("%{APPNAME}Part"), "%{VERSION}"); s_about->addAuthor("%{AUTHOR}", 0, "%{EMAIL}"); - s_instance = new KInstance(s_about); + s_instance = new TDEInstance(s_about); } return s_instance; } |