diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmlibrarymanager.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmlibrarymanager.cpp')
-rw-r--r-- | kpovmodeler/pmlibrarymanager.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kpovmodeler/pmlibrarymanager.cpp b/kpovmodeler/pmlibrarymanager.cpp index 2caeb6e3..9683064a 100644 --- a/kpovmodeler/pmlibrarymanager.cpp +++ b/kpovmodeler/pmlibrarymanager.cpp @@ -21,17 +21,17 @@ #include <kstandarddirs.h> #include <kglobal.h> -#include <qfile.h> -#include <qdir.h> +#include <tqfile.h> +#include <tqdir.h> #include "pmdebug.h" PMLibraryManager* PMLibraryManager::s_pInstance = 0; KStaticDeleter<PMLibraryManager> PMLibraryManager::s_staticDeleter; -PMLibraryHandle* PMLibraryManager::getLibraryHandle( const QString& libraryName ) +PMLibraryHandle* PMLibraryManager::getLibraryHandle( const TQString& libraryName ) { - QPtrListIterator<PMLibraryHandle> it( m_libraries ); + TQPtrListIterator<PMLibraryHandle> it( m_libraries ); for( ; it.current( ); ++it ) if( it.current( )->name( ) == libraryName ) @@ -59,10 +59,10 @@ void PMLibraryManager::restoreConfig( KConfig* /*cfg*/ ) { } -QValueList<QString> PMLibraryManager::availableLibraries( ) +TQValueList<TQString> PMLibraryManager::availableLibraries( ) { - QValueList<QString> result; - QPtrListIterator<PMLibraryHandle> it( m_libraries ); + TQValueList<TQString> result; + TQPtrListIterator<PMLibraryHandle> it( m_libraries ); for( ; it.current( ); ++it ) result.push_back( it.current( )->name( ) ); @@ -79,24 +79,24 @@ PMLibraryManager* PMLibraryManager::theManager( ) void PMLibraryManager::scanLibraries( ) { - QStringList libraryDirectories; + TQStringList libraryDirectories; // Search for sub directories in /usr/share/kpovmodeler/library libraryDirectories = KGlobal::dirs( )->findDirs( "data", "kpovmodeler/library" ); - for( QStringList::Iterator i = libraryDirectories.begin( ); i != libraryDirectories.end( ); ++i ) + for( TQStringList::Iterator i = libraryDirectories.begin( ); i != libraryDirectories.end( ); ++i ) { - QDir curDir( *i ); - curDir.setFilter( QDir::Dirs ); + TQDir curDir( *i ); + curDir.setFilter( TQDir::Dirs ); QFileInfoListIterator it( *( curDir.entryInfoList( ) ) ); // For each sub directory - QFileInfo* fi; + TQFileInfo* fi; for( ; ( fi = it.current( ) ) != NULL; ++it ) { // check for the existance of library_index.xml // If it's there it's a library - if( QFile::exists( fi->absFilePath( ) + "/library_index.xml" ) ) + if( TQFile::exists( fi->absFilePath( ) + "/library_index.xml" ) ) { // Create the corresponding PMLibraryHandle PMLibraryHandle* h; |