From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/project/rescanprj.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'quanta/project/rescanprj.cpp') diff --git a/quanta/project/rescanprj.cpp b/quanta/project/rescanprj.cpp index 1c467c7d..b24b123f 100644 --- a/quanta/project/rescanprj.cpp +++ b/quanta/project/rescanprj.cpp @@ -40,8 +40,8 @@ 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) + TQWidget *tqparent, const char *name, bool modal ) + : RescanPrjDir(tqparent,name,modal) { setCaption(name); @@ -87,7 +87,7 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) { KURL url = static_cast(job)->url(); url.adjustPath(-1); - // avoid creating these QStrings again and again + // avoid creating these TQStrings again and again static const TQString& dot = KGlobal::staticQString("."); static const TQString& dotdot = KGlobal::staticQString(".."); @@ -115,7 +115,7 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) else u.setPath(linkDest); u.adjustPath(+1); - KURL u2 = QExtFileInfo::toRelative(u, baseURL); + KURL u2 = TQExtFileInfo::toRelative(u, baseURL); bool found = false; for (uint i = 0; i < urlList.count(); i++) if (urlList[i].url == u2) @@ -123,7 +123,7 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) found = true; break; } - if (!prjFileList.contains(u) && !found) + if (!prjFileList.tqcontains(u) && !found) { linkItems.append(new KFileItem(item)); } else @@ -137,7 +137,7 @@ void RescanPrj::addEntries(KIO::Job *job,const KIO::UDSEntryList &list) itemURL = item.url(); if (item.isDir()) itemURL.adjustPath(+1); - ProjectURL *proUrl = prjFileList.find(itemURL); + ProjectURL *proUrl = prjFileList.tqfind(itemURL); if (!proUrl) { urlEntry.url = prjFileList.toRelative(itemURL); @@ -162,7 +162,7 @@ void RescanPrj::resizeEvent ( TQResizeEvent *t ) { RescanPrjDir::resizeEvent(t); // listView->setColumnWidth(0,listView->width()-listView->columnWidth(1)-20); -// MainLayout->setGeometry(childrenRect()); +// MainLayout->setGeometry(tqchildrenRect()); } void RescanPrj::slotSelect() @@ -214,7 +214,7 @@ KURL::List RescanPrj::files() } if (!u.isEmpty()) - r.append( QExtFileInfo::toAbsolute(u, baseURL) ); + r.append( TQExtFileInfo::toAbsolute(u, baseURL) ); } } return r; @@ -227,7 +227,7 @@ void RescanPrj::slotListDone(KIO::Job *) if (m_listJobCount == 0) { progressText->setText(i18n("Building tree:")); - progressText->repaint(); + progressText->tqrepaint(); progress->setTotalSteps(urlList.count()); progress->setValue(0); URLListEntry urlEntry; -- cgit v1.2.1