diff options
Diffstat (limited to 'quanta/project/rescanprj.cpp')
-rw-r--r-- | quanta/project/rescanprj.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/quanta/project/rescanprj.cpp b/quanta/project/rescanprj.cpp index fe0bb588..1c467c7d 100644 --- a/quanta/project/rescanprj.cpp +++ b/quanta/project/rescanprj.cpp @@ -16,10 +16,10 @@ ***************************************************************************/ // qt includes -#include <qlistview.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qlabel.h> +#include <tqlistview.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqlabel.h> // kde includes #include <kdebug.h> @@ -39,8 +39,8 @@ #include "projectlist.h" -RescanPrj::RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, const QRegExp &p_excludeRx, - QWidget *parent, const char *name, bool modal ) +RescanPrj::RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, const TQRegExp &p_excludeRx, + TQWidget *parent, const char *name, bool modal ) : RescanPrjDir(parent,name,modal) { setCaption(name); @@ -56,22 +56,22 @@ RescanPrj::RescanPrj(const ProjectList &p_prjFileList, const KURL& p_baseURL, co KIO::ListJob *job = KIO::listRecursive( baseURL, false ); m_listJobCount = 1; - connect( job, SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)), - this,SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &))); - connect( job, SIGNAL(result(KIO::Job *)), - this,SLOT (slotListDone(KIO::Job *))); - - - connect( buttonSelect, SIGNAL(clicked()), - this, SLOT(slotSelect())); - connect( buttonDeselect, SIGNAL(clicked()), - this, SLOT(slotDeselect())); - connect( buttonInvert, SIGNAL(clicked()), - this, SLOT(slotInvert())); - connect( buttonExpand, SIGNAL(clicked()), - this, SLOT(slotExpand())); - connect( buttonCollapse, SIGNAL(clicked()), - this, SLOT(slotCollapse())); + connect( job, TQT_SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)), + this,TQT_SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &))); + connect( job, TQT_SIGNAL(result(KIO::Job *)), + this,TQT_SLOT (slotListDone(KIO::Job *))); + + + connect( buttonSelect, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotSelect())); + connect( buttonDeselect, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotDeselect())); + connect( buttonInvert, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotInvert())); + connect( buttonExpand, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotExpand())); + connect( buttonCollapse, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotCollapse())); } RescanPrj::~RescanPrj() @@ -88,15 +88,15 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) KURL url = static_cast<KIO::ListJob *>(job)->url(); url.adjustPath(-1); // avoid creating these QStrings again and again - static const QString& dot = KGlobal::staticQString("."); - static const QString& dotdot = KGlobal::staticQString(".."); + static const TQString& dot = KGlobal::staticQString("."); + static const TQString& dotdot = KGlobal::staticQString(".."); KIO::UDSEntryListConstIterator it = list.begin(); KIO::UDSEntryListConstIterator end = list.end(); KURL itemURL; URLListEntry urlEntry; - QString name; - QPtrList<KFileItem> linkItems; + TQString name; + TQPtrList<KFileItem> linkItems; linkItems.setAutoDelete(true); for ( ; it != end; ++it ) { @@ -104,7 +104,7 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) name = item.name(); if (item.isDir() && item.isLink()) { - QString linkDest = item.linkDest(); + TQString linkDest = item.linkDest(); kdDebug(24000) << "Got link: " << name << " Points to:" << linkDest << endl; KURL u = item.url(); if (linkDest.startsWith(".")) @@ -146,19 +146,19 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) } } } - for (QPtrList<KFileItem>::ConstIterator it = linkItems.constBegin(); it != linkItems.constEnd(); ++it) + for (TQPtrList<KFileItem>::ConstIterator it = linkItems.constBegin(); it != linkItems.constEnd(); ++it) { KIO::ListJob *ljob = KIO::listRecursive( (*it)->url(), false ); m_listJobCount++; - connect( ljob, SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)), - this,SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &))); - connect( ljob, SIGNAL(result(KIO::Job *)), - this,SLOT (slotListDone(KIO::Job *))); + connect( ljob, TQT_SIGNAL(entries(KIO::Job *,const KIO::UDSEntryList &)), + this,TQT_SLOT (addEntries(KIO::Job *,const KIO::UDSEntryList &))); + connect( ljob, TQT_SIGNAL(result(KIO::Job *)), + this,TQT_SLOT (slotListDone(KIO::Job *))); } } -void RescanPrj::resizeEvent ( QResizeEvent *t ) +void RescanPrj::resizeEvent ( TQResizeEvent *t ) { RescanPrjDir::resizeEvent(t); // listView->setColumnWidth(0,listView->width()-listView->columnWidth(1)-20); @@ -197,8 +197,8 @@ KURL::List RescanPrj::files() { KURL::List r; - QListViewItem *item; - QListViewItemIterator it(listView); + TQListViewItem *item; + TQListViewItemIterator it(listView); for ( ; it.current(); ++it ) { item = it.current(); |