diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/php/phpparser.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/php/phpparser.cpp')
-rw-r--r-- | languages/php/phpparser.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/languages/php/phpparser.cpp b/languages/php/phpparser.cpp index b13c5479..a0f1179e 100644 --- a/languages/php/phpparser.cpp +++ b/languages/php/phpparser.cpp @@ -25,11 +25,11 @@ #include <kdevproject.h> #include <codemodel.h> -#include <qregexp.h> +#include <tqregexp.h> #include <kdebug.h> -#include <qfileinfo.h> -#include <qtextstream.h> +#include <tqfileinfo.h> +#include <tqtextstream.h> #include <iostream> @@ -46,37 +46,37 @@ PHPParser::~PHPParser(){ removeAllFiles(); } -bool PHPParser::hasFile( const QString& fileName ) +bool PHPParser::hasFile( const TQString& fileName ) { // kdDebug(9018) << "hasFile " << fileName.latin1() << endl; - QString abso = URLUtil::canonicalPath(fileName); - QMap<QString, PHPFile *>::Iterator it = m_files.find(abso); + TQString abso = URLUtil::canonicalPath(fileName); + TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso); if ( it == m_files.end() ) return false; return true; } -void PHPParser::addFile( const QString& fileName ) +void PHPParser::addFile( const TQString& fileName ) { - QString abso = URLUtil::canonicalPath(fileName); + TQString abso = URLUtil::canonicalPath(fileName); if ( hasFile(abso) ) return; kdDebug(9018) << "addFile " << fileName.latin1() << endl; - QFileInfo fi( abso ); + TQFileInfo fi( abso ); if ((fi.extension().contains("inc") || fi.extension().contains("php") || fi.extension().contains("html") || fi.extension().contains("php3") || !fi.extension()) && !fi.extension().contains("~")) { m_files.insert(abso, new PHPFile(m_part, abso)); } } -void PHPParser::removeFile( const QString& fileName ) +void PHPParser::removeFile( const TQString& fileName ) { // kdDebug(9018) << "removeFile " << fileName.latin1() << endl; - QString abso = URLUtil::canonicalPath(fileName); - QMap<QString, PHPFile *>::Iterator it = m_files.find(abso); + TQString abso = URLUtil::canonicalPath(fileName); + TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso); if ( it != m_files.end()) { PHPFile *file = it.data(); @@ -89,7 +89,7 @@ void PHPParser::removeFile( const QString& fileName ) void PHPParser::removeAllFiles() { kdDebug(9018) << "removeAllFiles" << endl; - QMap<QString, PHPFile *>::Iterator it = m_files.begin(); + TQMap<TQString, PHPFile *>::Iterator it = m_files.begin(); while( it != m_files.end() ){ PHPFile * file = it.data(); @@ -100,11 +100,11 @@ void PHPParser::removeAllFiles() m_files.clear(); } -void PHPParser::reparseFile( const QString& fileName ) +void PHPParser::reparseFile( const TQString& fileName ) { kdDebug(9018) << "reparseFile" << endl; - QString abso = URLUtil::canonicalPath(fileName); - QMap<QString, PHPFile *>::Iterator it = m_files.find(abso); + TQString abso = URLUtil::canonicalPath(fileName); + TQMap<TQString, PHPFile *>::Iterator it = m_files.find(abso); if ( it != m_files.end()) { PHPFile *file = it.data(); @@ -115,8 +115,8 @@ void PHPParser::reparseFile( const QString& fileName ) } void PHPParser::run() { - kdDebug(9018) << "run thread " << QThread::currentThread() << endl; - QMap<QString, PHPFile *>::Iterator it; + kdDebug(9018) << "run thread " << TQThread::currentThread() << endl; + TQMap<TQString, PHPFile *>::Iterator it; while ( !m_close ) { m_canParse.wait(); |