summaryrefslogtreecommitdiffstats
path: root/kugar/kudesigner
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-22 19:55:40 -0600
committerTimothy Pearson <[email protected]>2013-01-22 19:55:40 -0600
commit73ff676f11662d6178c8854a7832ebffe2ae409d (patch)
tree9e89ea7d87940087d2d3c5db9b378ef989dd1346 /kugar/kudesigner
parentc2ba2f56121c21a762619faf195e8332ef5b224f (diff)
downloadkoffice-73ff676f11662d6178c8854a7832ebffe2ae409d.tar.gz
koffice-73ff676f11662d6178c8854a7832ebffe2ae409d.zip
Rename KInstance and KAboutData to avoid conflicts with KDE4
Diffstat (limited to 'kugar/kudesigner')
-rw-r--r--kugar/kudesigner/kudesigner_aboutdata.h8
-rw-r--r--kugar/kudesigner/kudesigner_factory.cpp10
-rw-r--r--kugar/kudesigner/kudesigner_factory.h14
3 files changed, 16 insertions, 16 deletions
diff --git a/kugar/kudesigner/kudesigner_aboutdata.h b/kugar/kudesigner/kudesigner_aboutdata.h
index 9be6a2de..b9682fde 100644
--- a/kugar/kudesigner/kudesigner_aboutdata.h
+++ b/kugar/kudesigner/kudesigner_aboutdata.h
@@ -27,14 +27,14 @@
static const char* description = I18N_NOOP( "GUI report template designer for Kugar report engine" );
static const char* version = KOFFICE_VERSION_STRING;
-KAboutData * newKudesignerAboutData()
+TDEAboutData * newKudesignerAboutData()
{
// Change this, of course
- // The first argument of the KAboutData constructor is the instance name.
+ // The first argument of the TDEAboutData constructor is the instance name.
// It is very important, it's what's used for many things, like the subdir in share/apps, etc.
// It must also match the name of the application's .desktop file.
- KAboutData * aboutData = new KAboutData( "kudesigner", I18N_NOOP( "Kugar Report Designer" ),
- version, description, KAboutData::License_LGPL,
+ TDEAboutData * aboutData = new TDEAboutData( "kudesigner", I18N_NOOP( "Kugar Report Designer" ),
+ version, description, TDEAboutData::License_LGPL,
"(c) 2002,2003, Alexander Dymo (and the Kugar Team)" );
aboutData->addAuthor( "Alexander Dymo",
I18N_NOOP( "Maintainer, Report Designer, Kugar library enhancements" ),
diff --git a/kugar/kudesigner/kudesigner_factory.cpp b/kugar/kudesigner/kudesigner_factory.cpp
index 1f5a8740..82b88f03 100644
--- a/kugar/kudesigner/kudesigner_factory.cpp
+++ b/kugar/kudesigner/kudesigner_factory.cpp
@@ -26,8 +26,8 @@
#include <kdebug.h>
#include <kstandarddirs.h>
-KInstance* KudesignerFactory::s_global = 0L;
-KAboutData* KudesignerFactory::s_aboutData = 0L;
+TDEInstance* KudesignerFactory::s_global = 0L;
+TDEAboutData* KudesignerFactory::s_aboutData = 0L;
KudesignerFactory::KudesignerFactory( TQObject* parent, const char* name )
: KoFactory( parent, name )
@@ -74,18 +74,18 @@ KParts::Part* KudesignerFactory::createPartObject( TQWidget *parentWidget, const
return part;
}
-KAboutData* KudesignerFactory::aboutData()
+TDEAboutData* KudesignerFactory::aboutData()
{
if ( !s_aboutData )
s_aboutData = newKudesignerAboutData();
return s_aboutData;
}
-KInstance* KudesignerFactory::global()
+TDEInstance* KudesignerFactory::global()
{
if ( !s_global )
{
- s_global = new KInstance( aboutData() );
+ s_global = new TDEInstance( aboutData() );
// Add any application-specific resource directories here
s_global->dirs() ->addResourceType( "kudesigner_template",
KStandardDirs::kde_default( "data" ) + "kudesigner/templates/" );
diff --git a/kugar/kudesigner/kudesigner_factory.h b/kugar/kudesigner/kudesigner_factory.h
index f35e22e7..91e49690 100644
--- a/kugar/kudesigner/kudesigner_factory.h
+++ b/kugar/kudesigner/kudesigner_factory.h
@@ -22,8 +22,8 @@
#include <KoFactory.h>
#include <koffice_export.h>
-class KInstance;
-class KAboutData;
+class TDEInstance;
+class TDEAboutData;
class KUGARDESIGNER_EXPORT KudesignerFactory : public KoFactory
{
@@ -35,14 +35,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