From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kparts/componentfactory.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kparts/componentfactory.h') diff --git a/kparts/componentfactory.h b/kparts/componentfactory.h index dc85663b0..7e9de4280 100644 --- a/kparts/componentfactory.h +++ b/kparts/componentfactory.h @@ -82,7 +82,7 @@ namespace KParts * \endcode * * @param factory The factory to ask for the creation of the component - * @param tqparentWidget the parent widget for the part + * @param parentWidget the parent widget for the part * @param widgetName the name of the part's widget * @param parent The parent object (see TQObject constructor) * @param name The name of the object to create (see TQObject constructor) @@ -93,13 +93,13 @@ namespace KParts */ template static T *createPartInstanceFromFactory( KParts::Factory *factory, - TQWidget *tqparentWidget = 0, + TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const TQStringList &args = TQStringList() ) { - KParts::Part *object = factory->createPart( tqparentWidget, widgetName, + KParts::Part *object = factory->createPart( parentWidget, widgetName, parent, name, T::staticMetaObject()->className(), args ); @@ -156,7 +156,7 @@ namespace KParts template static T *createPartInstanceFromLibrary( const char *libraryName, - TQWidget *tqparentWidget = 0, + TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, @@ -186,7 +186,7 @@ namespace KParts *error = ErrNoFactory; return 0; } - T *res = createPartInstanceFromFactory( partFactory, tqparentWidget, + T *res = createPartInstanceFromFactory( partFactory, parentWidget, widgetName, parent, name, args ); if ( !res ) { @@ -218,7 +218,7 @@ namespace KParts template static T *createPartInstanceFromService( const KService::Ptr &service, - TQWidget *tqparentWidget = 0, + TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, @@ -233,7 +233,7 @@ namespace KParts return 0; } - return createPartInstanceFromLibrary( library.local8Bit().data(), tqparentWidget, + return createPartInstanceFromLibrary( library.local8Bit().data(), parentWidget, widgetName, parent, name, args, error ); } @@ -267,7 +267,7 @@ namespace KParts template static T *createPartInstanceFromServices( ServiceIterator begin, ServiceIterator end, - TQWidget *tqparentWidget = 0, + TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, @@ -281,7 +281,7 @@ namespace KParts if ( error ) *error = 0; - T *component = createPartInstanceFromService( service, tqparentWidget, + T *component = createPartInstanceFromService( service, parentWidget, widgetName, parent, name, args, error ); if ( component ) @@ -306,7 +306,7 @@ namespace KParts * } * \endcode * - * @param serviceType the type of service for which to tqfind a plugin + * @param serviceType the type of service for which to find a plugin * @param constraint an optional constraint to pass to the trader (see KIO::KTrader) * @param parent the parent object for the part itself * @param name the name that will be given to the part @@ -344,18 +344,18 @@ namespace KParts * You can use this method to create a generic viewer - that can display any * kind of file, provided that there is a ReadOnlyPart installed for it - in 5 lines: * \code - * // Given the following: KURL url, TQWidget* tqparentWidget and TQObject* parentObject. + * // Given the following: KURL url, TQWidget* parentWidget and TQObject* parentObject. * TQString mimetype = KMimeType::findByURL( url )->name(); - * KParts::ReadOnlyPart* part = KParts::ComponentFactory::createPartInstanceFromQuery( mimetype, TQString::null, tqparentWidget, 0, parentObject, 0 ); + * KParts::ReadOnlyPart* part = KParts::ComponentFactory::createPartInstanceFromQuery( mimetype, TQString::null, parentWidget, 0, parentObject, 0 ); * if ( part ) { * part->openURL( url ); - * part->widget()->show(); // also insert the widget into a tqlayout, or simply use a TQVBox as tqparentWidget + * part->widget()->show(); // also insert the widget into a layout, or simply use a TQVBox as parentWidget * } * \endcode * - * @param serviceType the type of service for which to tqfind a part, e.g. a mimetype + * @param serviceType the type of service for which to find a part, e.g. a mimetype * @param constraint an optional constraint to pass to the trader (see KTrader) - * @param tqparentWidget the parent widget, will be set as the parent of the part's widget + * @param parentWidget the parent widget, will be set as the parent of the part's widget * @param widgetName the name that will be given to the part's widget * @param parent the parent object for the part itself * @param name the name that will be given to the part @@ -369,14 +369,14 @@ namespace KParts template static T *createPartInstanceFromQuery( const TQString &serviceType, const TQString &constraint, - TQWidget *tqparentWidget = 0, + TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const TQStringList &args = TQStringList(), int *error = 0 ) { - KTrader::OfferList offers = KTrader::self()->query( serviceType, TQString::tqfromLatin1("KParts/ReadOnlyPart"), constraint, TQString::null ); + KTrader::OfferList offers = KTrader::self()->query( serviceType, TQString::fromLatin1("KParts/ReadOnlyPart"), constraint, TQString::null ); if ( offers.isEmpty() ) { if ( error ) @@ -385,7 +385,7 @@ namespace KParts } return createPartInstanceFromServices( offers.begin(), offers.end(), - tqparentWidget, widgetName, + parentWidget, widgetName, parent, name, args, error ); } -- cgit v1.2.1