diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-22 20:22:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-22 20:22:42 -0600 |
commit | 63bcbec9a09626ba09945de06b3eb74f50f3b228 (patch) | |
tree | 205df87b7ca9a12d3295653c8e4a0dd7283ea03a /kbabel/kbabeldict/modules/pocompendium | |
parent | cfe9ce987a45dd734b924ee4596946227a50609e (diff) | |
download | tdesdk-63bcbec9a09626ba09945de06b3eb74f50f3b228.tar.gz tdesdk-63bcbec9a09626ba09945de06b3eb74f50f3b228.zip |
Rename KInstance and KAboutData to avoid conflicts with KDE4
Diffstat (limited to 'kbabel/kbabeldict/modules/pocompendium')
4 files changed, 13 insertions, 13 deletions
diff --git a/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp b/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp index cb61de6b..16101750 100644 --- a/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp +++ b/kbabel/kbabeldict/modules/pocompendium/pc_factory.cpp @@ -50,8 +50,8 @@ extern "C" } -KInstance *PcFactory::s_instance = 0; -KAboutData *PcFactory::s_about = 0; +TDEInstance *PcFactory::s_instance = 0; +TDEAboutData *PcFactory::s_about = 0; PcFactory::PcFactory( TQObject *parent, const char *name) @@ -88,20 +88,20 @@ TQObject *PcFactory::createObject( TQObject *parent, const char *name } -KInstance *PcFactory::instance() +TDEInstance *PcFactory::instance() { if(!s_instance) { - s_about = new KAboutData( "pocompendium", I18N_NOOP("PO Compendium") + s_about = new TDEAboutData( "pocompendium", I18N_NOOP("PO Compendium") , "1.0" , I18N_NOOP("A module for searching in a PO file") - , KAboutData::License_GPL + , TDEAboutData::License_GPL , "Copyright 2000-2001, Matthias Kiefer" ,0,0, "kiefer@kde.org"); s_about->addAuthor("Matthias Kiefer",0,"kiefer@kde.org"); - s_instance = new KInstance(s_about); + s_instance = new TDEInstance(s_about); } return s_instance; diff --git a/kbabel/kbabeldict/modules/pocompendium/pc_factory.h b/kbabel/kbabeldict/modules/pocompendium/pc_factory.h index 0d287259..bd94712a 100644 --- a/kbabel/kbabeldict/modules/pocompendium/pc_factory.h +++ b/kbabel/kbabeldict/modules/pocompendium/pc_factory.h @@ -36,8 +36,8 @@ #define PC_FACTORY_H #include <klibloader.h> -class KInstance; -class KAboutData; +class TDEInstance; +class TDEAboutData; class PcFactory : public KLibFactory { @@ -51,11 +51,11 @@ public: , const char *classname=TQOBJECT_OBJECT_NAME_STRING , const TQStringList &args = TQStringList()); - static KInstance *instance(); + static TDEInstance *instance(); private: - static KInstance *s_instance; - static KAboutData *s_about; + static TDEInstance *s_instance; + static TDEAboutData *s_about; }; #endif diff --git a/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp b/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp index 7c462099..95557332 100644 --- a/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp +++ b/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp @@ -173,7 +173,7 @@ PrefWidget *PoCompendium::preferencesWidget(TQWidget *parent) return prefWidget; } -const KAboutData *PoCompendium::about() const +const TDEAboutData *PoCompendium::about() const { return PcFactory::instance()->aboutData(); } diff --git a/kbabel/kbabeldict/modules/pocompendium/pocompendium.h b/kbabel/kbabeldict/modules/pocompendium/pocompendium.h index c0d33d5e..ef6eec63 100644 --- a/kbabel/kbabeldict/modules/pocompendium/pocompendium.h +++ b/kbabel/kbabeldict/modules/pocompendium/pocompendium.h @@ -70,7 +70,7 @@ public: virtual PrefWidget *preferencesWidget(TQWidget *parent); - virtual const KAboutData *about() const; + virtual const TDEAboutData *about() const; virtual TQString name() const; |