summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectlist.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/project/projectlist.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
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
Diffstat (limited to 'quanta/project/projectlist.cpp')
-rw-r--r--quanta/project/projectlist.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/quanta/project/projectlist.cpp b/quanta/project/projectlist.cpp
index fabec2fd..db162ce2 100644
--- a/quanta/project/projectlist.cpp
+++ b/quanta/project/projectlist.cpp
@@ -69,19 +69,19 @@ bool ProjectList::readFromXML(TQDomDocument &dom, const KURL &baseURL,
}
}
path = url.path();
- url = QExtFileInfo::toAbsolute(url, baseURL);
+ url = TQExtFileInfo::toAbsolute(url, baseURL);
if ( el.nodeName() == "item" )
{
- if (excludeRx.exactMatch(path) || find(url.url(-1)))
+ if (excludeRx.exactMatch(path) || tqfind(url.url(-1)))
{
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
modified = true;
i--;
} else
{
bool docFolder = (el.attribute("documentFolder", "false") == "true");
- int uploadStatus = el.attribute("uploadstatus", "-1").toInt();
- if (uploadStatus == -1)
+ int uploadtqStatus = el.attribute("uploadstatus", "-1").toInt();
+ if (uploadtqStatus == -1)
el.setAttribute("uploadstatus", 1);
//remove non-existent local files
if ( url.isLocalFile() )
@@ -89,7 +89,7 @@ bool ProjectList::readFromXML(TQDomDocument &dom, const KURL &baseURL,
TQFileInfo fi( url.path() );
if ( !fi.exists() )
{
- el.parentNode().removeChild( el );
+ el.tqparentNode().removeChild( el );
modified = true;
i--;
} else
@@ -106,7 +106,7 @@ bool ProjectList::readFromXML(TQDomDocument &dom, const KURL &baseURL,
}
progressBar->advance(1);
}
- ProjectURL *proUrl = find(baseURL);
+ ProjectURL *proUrl = tqfind(baseURL);
if (!proUrl)
{
el = dom.createElement("item");
@@ -126,10 +126,10 @@ bool ProjectList::readFromXML(TQDomDocument &dom, const KURL &baseURL,
bool ProjectList::removeFromListAndXML(const KURL &url)
{
- ProjectURL *p = find(url);
+ ProjectURL *p = tqfind(url);
if (p) {
TQDomElement el = p->domElement;
- el.parentNode().removeChild(el);
+ el.tqparentNode().removeChild(el);
remove(url.url(-1));
return true;
}
@@ -137,15 +137,15 @@ bool ProjectList::removeFromListAndXML(const KURL &url)
}
-bool ProjectList::contains(const KURL &url) const
+bool ProjectList::tqcontains(const KURL &url) const
{
- return ProjectUrlList::find(url.url(-1));
+ return ProjectUrlList::tqfind(url.url(-1));
}
-ProjectURL * ProjectList::find(const KURL &url) const
+ProjectURL * ProjectList::tqfind(const KURL &url) const
{
- return ProjectUrlList::find(url.url(-1));
+ return ProjectUrlList::tqfind(url.url(-1));
}
@@ -157,7 +157,7 @@ void ProjectList::insert(ProjectURL *url)
bool ProjectList::isFolder(const KURL &url) const
{
- ProjectURL *p = find(url);
+ ProjectURL *p = tqfind(url);
return ( p && url.url(-1) != (*p).url() );
}
@@ -168,9 +168,9 @@ void ProjectList::insert(const TQString & key, const ProjectURL * item)
}
-ProjectURL * ProjectList::find ( const TQString & key ) const
+ProjectURL * ProjectList::tqfind ( const TQString & key ) const
{
- return ProjectUrlList::find(key);
+ return ProjectUrlList::tqfind(key);
}
@@ -180,8 +180,8 @@ bool ProjectList::remove ( const TQString & key )
}
-void ProjectList::replace(const TQString & key, const ProjectURL * item)
+void ProjectList::tqreplace(const TQString & key, const ProjectURL * item)
{
- ProjectUrlList::replace(key, item);
+ ProjectUrlList::tqreplace(key, item);
}