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 /lib/interfaces/kdevproject.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 'lib/interfaces/kdevproject.cpp')
-rw-r--r-- | lib/interfaces/kdevproject.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/interfaces/kdevproject.cpp b/lib/interfaces/kdevproject.cpp index b98ecffb..f558cc48 100644 --- a/lib/interfaces/kdevproject.cpp +++ b/lib/interfaces/kdevproject.cpp @@ -26,28 +26,28 @@ #include "kdevproject.h" #include <urlutil.h> -#include <qfileinfo.h> -#include <qtimer.h> +#include <tqfileinfo.h> +#include <tqtimer.h> #include "kdevprojectiface.h" struct KDevProject::Private { - QMap<QString, QString> m_absToRel; - QStringList m_symlinkList; - QTimer *m_timer; + TQMap<TQString, TQString> m_absToRel; + TQStringList m_symlinkList; + TQTimer *m_timer; KDevProjectIface *m_iface; }; -KDevProject::KDevProject(const KDevPluginInfo *info, QObject *parent, const char *name) +KDevProject::KDevProject(const KDevPluginInfo *info, TQObject *parent, const char *name) : KDevPlugin(info, parent, name), d(new KDevProject::Private()) { - connect( this, SIGNAL(addedFilesToProject(const QStringList& )), this, SLOT(buildFileMap()) ); - connect( this, SIGNAL(removedFilesFromProject(const QStringList& )), this, SLOT(buildFileMap()) ); + connect( this, TQT_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQT_SLOT(buildFileMap()) ); + connect( this, TQT_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQT_SLOT(buildFileMap()) ); - connect( this, SIGNAL(addedFilesToProject(const QStringList& )), this, SLOT(slotAddFilesToFileMap(const QStringList& )) ); - connect( this, SIGNAL(removedFilesFromProject(const QStringList& )), this, SLOT(slotRemoveFilesFromFileMap(const QStringList& )) ); + connect( this, TQT_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQT_SLOT(slotAddFilesToFileMap(const TQStringList& )) ); + connect( this, TQT_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQT_SLOT(slotRemoveFilesFromFileMap(const TQStringList& )) ); - d->m_timer = new QTimer(this); - connect(d->m_timer, SIGNAL(timeout()), this, SLOT(slotBuildFileMap())); + d->m_timer = new TQTimer(this); + connect(d->m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBuildFileMap())); d->m_iface = new KDevProjectIface(this); } @@ -59,16 +59,16 @@ KDevProject::~KDevProject() delete d; } -void KDevProject::changedFile( const QString & fileName ) +void KDevProject::changedFile( const TQString & fileName ) { - QStringList fileList; + TQStringList fileList; fileList.append ( fileName ); emit changedFilesInProject( fileList ); } -void KDevProject::changedFiles( const QStringList & fileList ) +void KDevProject::changedFiles( const TQStringList & fileList ) { emit changedFilesInProject( fileList ); } @@ -78,16 +78,16 @@ KDevProject::Options KDevProject::options() const return (KDevProject::Options)0; } -bool KDevProject::isProjectFile( const QString & absFileName ) +bool KDevProject::isProjectFile( const TQString & absFileName ) { return d->m_absToRel.contains( absFileName ); } -QString KDevProject::relativeProjectFile( const QString & absFileName ) +TQString KDevProject::relativeProjectFile( const TQString & absFileName ) { if( isProjectFile(absFileName) ) return d->m_absToRel[ absFileName ]; - return QString::null; + return TQString::null; } void KDevProject::buildFileMap() @@ -102,10 +102,10 @@ void KDevProject::slotBuildFileMap() d->m_absToRel.clear(); d->m_symlinkList.clear(); - const QStringList fileList = allFiles(); - for( QStringList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ) + const TQStringList fileList = allFiles(); + for( TQStringList::ConstIterator it=fileList.begin(); it!=fileList.end(); ++it ) { - QFileInfo fileInfo( projectDirectory() + "/" + *it ); + TQFileInfo fileInfo( projectDirectory() + "/" + *it ); d->m_absToRel[ URLUtil::canonicalPath(fileInfo.absFilePath()) ] = *it; if ( URLUtil::canonicalPath( fileInfo.absFilePath() ) != fileInfo.absFilePath() ) @@ -115,27 +115,27 @@ void KDevProject::slotBuildFileMap() } } -void KDevProject::openProject( const QString & /*dirName*/, const QString & /*projectName*/ ) +void KDevProject::openProject( const TQString & /*dirName*/, const TQString & /*projectName*/ ) { buildFileMap(); } -QStringList KDevProject::symlinkProjectFiles( ) +TQStringList KDevProject::symlinkProjectFiles( ) { return d->m_symlinkList; } -QString KDevProject::defaultRunDirectory(const QString& projectPluginName) const +TQString KDevProject::defaultRunDirectory(const TQString& projectPluginName) const { return DomUtil::readEntry(*projectDom(), "/" + projectPluginName + "/run/globalcwd"); } -void KDevProject::slotAddFilesToFileMap( const QStringList & fileList ) +void KDevProject::slotAddFilesToFileMap( const TQStringList & fileList ) { - QStringList::ConstIterator it = fileList.begin(); + TQStringList::ConstIterator it = fileList.begin(); while( it != fileList.end() ) { - QFileInfo fileInfo( projectDirectory() + "/" + *it ); + TQFileInfo fileInfo( projectDirectory() + "/" + *it ); d->m_absToRel[ URLUtil::canonicalPath(fileInfo.absFilePath()) ] = *it; if ( URLUtil::canonicalPath( fileInfo.absFilePath() ) != fileInfo.absFilePath() ) @@ -147,12 +147,12 @@ void KDevProject::slotAddFilesToFileMap( const QStringList & fileList ) } } -void KDevProject::slotRemoveFilesFromFileMap( const QStringList & fileList ) +void KDevProject::slotRemoveFilesFromFileMap( const TQStringList & fileList ) { - QStringList::ConstIterator it = fileList.begin(); + TQStringList::ConstIterator it = fileList.begin(); while( it != fileList.end() ) { - QFileInfo fileInfo( projectDirectory() + "/" + *it ); + TQFileInfo fileInfo( projectDirectory() + "/" + *it ); d->m_absToRel.remove( URLUtil::canonicalPath(fileInfo.absFilePath()) ); d->m_symlinkList.remove( *it ); |