summaryrefslogtreecommitdiffstats
path: root/kugar/kudesigner/kudesigner_factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/kudesigner/kudesigner_factory.cpp')
-rw-r--r--kugar/kudesigner/kudesigner_factory.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kugar/kudesigner/kudesigner_factory.cpp b/kugar/kudesigner/kudesigner_factory.cpp
index c83cedbf..2c90d1d8 100644
--- a/kugar/kudesigner/kudesigner_factory.cpp
+++ b/kugar/kudesigner/kudesigner_factory.cpp
@@ -29,8 +29,8 @@
KInstance* KudesignerFactory::s_global = 0L;
KAboutData* KudesignerFactory::s_aboutData = 0L;
-KudesignerFactory::KudesignerFactory( QObject* parent, const char* name )
- : KoFactory( parent, name )
+KudesignerFactory::KudesignerFactory( TQObject* tqparent, const char* name )
+ : KoFactory( tqparent, name )
{
global();
}
@@ -43,20 +43,20 @@ KudesignerFactory::~KudesignerFactory()
s_global = 0L;
}
-KParts::Part* KudesignerFactory::createPartObject( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, const char* classname, const QStringList & data )
+KParts::Part* KudesignerFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent, const char* name, const char* classname, const TQStringList & data )
{
// If classname is "KoDocument", our host is a koffice application
// otherwise, the host wants us as a simple part, so switch to readonly and single view.
bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 );
- // parentWidget and widgetName are used by KoDocument for the "readonly+singleView" case.
- KudesignerDoc *part = new KudesignerDoc( parentWidget, widgetName, parent, name, !bWantKoDocument );
+ // tqparentWidget and widgetName are used by KoDocument for the "readonly+singleView" case.
+ KudesignerDoc *part = new KudesignerDoc( tqparentWidget, widgetName, tqparent, name, !bWantKoDocument );
if ( !bWantKoDocument )
part->setReadWrite( false );
if ( bWantKoDocument && ( data.count() > 0 ) )
{
- for ( QStringList::const_iterator it = data.begin();it != data.end();++it )
+ for ( TQStringList::const_iterator it = data.begin();it != data.end();++it )
{
if ( ( *it ).startsWith( "plugin=" ) )
{
@@ -64,7 +64,7 @@ KParts::Part* KudesignerFactory::createPartObject( QWidget *parentWidget, const
}
else if ( ( *it ).startsWith( "forcePropertyEditorPosition=" ) )
{
- QString tmp = ( *it ).right( ( *it ).length() - 28 ).upper();
+ TQString tmp = ( *it ).right( ( *it ).length() - 28 ).upper();
kdDebug() << "forced property editor position: " << tmp << endl;
part->setForcedPropertyEditorPosition( tmp == "LEFT" ? DockLeft : DockRight );
}