diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kugar/part/kugar_factory.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/part/kugar_factory.cpp')
-rw-r--r-- | kugar/part/kugar_factory.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kugar/part/kugar_factory.cpp b/kugar/part/kugar_factory.cpp index 19db5a96..69d16f21 100644 --- a/kugar/part/kugar_factory.cpp +++ b/kugar/part/kugar_factory.cpp @@ -29,7 +29,7 @@ K_EXPORT_COMPONENT_FACTORY( libkugarpart, KugarFactory ) // The factory ctor. -KugarFactory::KugarFactory( QObject *parent, const char* name ) : KoFactory( parent, name ) +KugarFactory::KugarFactory( TQObject *tqparent, const char* name ) : KoFactory( tqparent, name ) { global(); } @@ -65,27 +65,27 @@ KAboutData *KugarFactory::aboutData() // Create a new part. -KParts::Part* KugarFactory::createPartObject( QWidget *parentWidget, const char *widgetName, - QObject* parent, const char* name, const char* classname, const QStringList & data ) +KParts::Part* KugarFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, + TQObject* tqparent, const char* name, const char* classname, const TQStringList & data ) { - QString forcedUserTemplate; - for ( QStringList::const_iterator it = data.begin();it != data.end();++it ) + TQString forcedUserTemplate; + for ( TQStringList::const_iterator it = data.begin();it != data.end();++it ) { - QString tmp = ( *it ); + TQString tmp = ( *it ); if ( tmp.startsWith( "template=" ) ) forcedUserTemplate = tmp.right( tmp.length() - 9 ); } bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 ); - // parentWidget and widgetName are used by KoDocument for the "readonly+singleView" case. - KugarPart *part = new KugarPart( parentWidget, widgetName, parent, name, !bWantKoDocument ); + // tqparentWidget and widgetName are used by KoDocument for the "readonly+singleView" case. + KugarPart *part = new KugarPart( tqparentWidget, widgetName, tqparent, name, !bWantKoDocument ); // if ( !bWantKoDocument ) part->setReadWrite( false ); part->setForcedUserTemplate( forcedUserTemplate ); return part; - //return ( new KugarPart(parentWidget,name,forcedUserTemplate)); + //return ( new KugarPart(tqparentWidget,name,forcedUserTemplate)); } |