From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmpluginmanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kpovmodeler/pmpluginmanager.cpp') diff --git a/kpovmodeler/pmpluginmanager.cpp b/kpovmodeler/pmpluginmanager.cpp index 0921f79d..7af50d5c 100644 --- a/kpovmodeler/pmpluginmanager.cpp +++ b/kpovmodeler/pmpluginmanager.cpp @@ -21,8 +21,8 @@ #include "pmfactory.h" #include "pmdebug.h" -#include -#include +#include +#include #include #include @@ -38,7 +38,7 @@ class PMPluginWorkaround : public Plugin { public: PMPluginWorkaround( ) : Plugin( 0, 0 ) { }; - static QValueList installedPlugins( const KInstance* instance ) + static TQValueList installedPlugins( const KInstance* instance ) { return pluginInfos( instance ); } @@ -49,16 +49,16 @@ PMPluginManager::PMPluginManager( ) // find installed plugins KConfigGroup cfgGroup( PMFactory::instance( )->config( ), "KParts Plugins" ); - QValueList plugins + TQValueList plugins = PMPluginWorkaround::installedPlugins( PMFactory::instance( ) ); - QValueList::ConstIterator pIt = plugins.begin( ); - QValueList::ConstIterator pEnd = plugins.end( ); + TQValueList::ConstIterator pIt = plugins.begin( ); + TQValueList::ConstIterator pEnd = plugins.end( ); for( ; pIt != pEnd; ++pIt ) { - QDomElement docElem = ( *pIt ).m_document.documentElement( ); - QString name = docElem.attribute( "name" ); - QString description = docElem.attribute( "description" ); + TQDomElement docElem = ( *pIt ).m_document.documentElement( ); + TQString name = docElem.attribute( "name" ); + TQString description = docElem.attribute( "description" ); if( !description.isEmpty( ) ) description = i18n( description.latin1( ) ); bool enabled = cfgGroup.readBoolEntry( name + "Enabled", false ); @@ -97,13 +97,13 @@ void PMPluginManager::updatePlugins( ) { KConfigGroup cfgGroup( PMFactory::instance( )->config( ), "KParts Plugins" ); - QPtrListIterator pit( m_plugins ); + TQPtrListIterator pit( m_plugins ); for( ; *pit; ++pit ) cfgGroup.writeEntry( ( *pit )->name( ) + "Enabled", ( *pit )->enabled( ) ); cfgGroup.sync( ); - QPtrListIterator it( m_parts ); + TQPtrListIterator it( m_parts ); for( ; *it; ++it ) { Plugin::loadPlugins( *it, *it, PMFactory::instance( ), false ); -- cgit v1.2.1