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/pmresourcelocator.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kpovmodeler/pmresourcelocator.cpp') diff --git a/kpovmodeler/pmresourcelocator.cpp b/kpovmodeler/pmresourcelocator.cpp index 7c778b31..715abc45 100644 --- a/kpovmodeler/pmresourcelocator.cpp +++ b/kpovmodeler/pmresourcelocator.cpp @@ -19,8 +19,8 @@ #include "pmpovrayrenderwidget.h" #include "pmdebug.h" -#include -#include +#include +#include PMResourceLocator* PMResourceLocator::s_pInstance = 0; KStaticDeleter PMResourceLocator::s_staticDeleter; @@ -36,7 +36,7 @@ PMResourceLocator::~PMResourceLocator( ) m_cache.clear( ); } -QString PMResourceLocator::findFile( const QString& file ) +TQString PMResourceLocator::findFile( const TQString& file ) { if( !s_pInstance ) s_staticDeleter.setObject( s_pInstance, new PMResourceLocator( ) ); @@ -49,24 +49,24 @@ void PMResourceLocator::clearCache( ) s_pInstance->m_cache.clear( ); } -QString PMResourceLocator::lookUp( const QString& file ) +TQString PMResourceLocator::lookUp( const TQString& file ) { if( file.isEmpty( ) ) - return QString::null; + return TQString::null; kdDebug( PMArea ) << "LookUp: " << file << endl; - QString* ps = m_cache.find( file ); + TQString* ps = m_cache.find( file ); if( ps ) return *ps; bool found = false; - QString fullPath = QString::null; + TQString fullPath = TQString::null; if( file[0] == '/' ) { // absolute path, library paths are not used - QFileInfo info( file ); + TQFileInfo info( file ); if( info.exists( ) && info.isReadable( ) && info.isFile( ) ) { found = true; @@ -75,12 +75,12 @@ QString PMResourceLocator::lookUp( const QString& file ) } else { - QStringList plist = PMPovrayRenderWidget::povrayLibraryPaths( ); - QStringList::ConstIterator it = plist.begin( ); + TQStringList plist = PMPovrayRenderWidget::povrayLibraryPaths( ); + TQStringList::ConstIterator it = plist.begin( ); for( ; ( it != plist.end( ) ) && !found; ++it ) { - QDir dir( *it ); - QFileInfo info( dir, file ); + TQDir dir( *it ); + TQFileInfo info( dir, file ); if( info.exists( ) && info.isReadable( ) && info.isFile( ) ) { found = true; @@ -91,7 +91,7 @@ QString PMResourceLocator::lookUp( const QString& file ) if( found ) { - QString* ni = new QString( fullPath ); + TQString* ni = new TQString( fullPath ); if( !m_cache.insert( file, ni ) ) delete ni; kdDebug( PMArea ) << "File \"" << file << "\" found in " -- cgit v1.2.1