summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectlist.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/project/projectlist.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/projectlist.cpp')
-rw-r--r--quanta/project/projectlist.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/quanta/project/projectlist.cpp b/quanta/project/projectlist.cpp
index f5fdc24e..fabec2fd 100644
--- a/quanta/project/projectlist.cpp
+++ b/quanta/project/projectlist.cpp
@@ -15,9 +15,9 @@
***************************************************************************/
// qt includes
-#include <qdom.h>
-#include <qstring.h>
-#include <qfileinfo.h>
+#include <tqdom.h>
+#include <tqstring.h>
+#include <tqfileinfo.h>
// kde includes
#include <kprogress.h>
@@ -39,19 +39,19 @@ void ProjectList::clear()
ProjectUrlList::clear();
}
-bool ProjectList::readFromXML(QDomDocument &dom, const KURL &baseURL,
- const KURL &/*templateURL*/, const QRegExp &excludeRx)
+bool ProjectList::readFromXML(TQDomDocument &dom, const KURL &baseURL,
+ const KURL &/*templateURL*/, const TQRegExp &excludeRx)
{
clear(); // empty the list
m_baseURL = baseURL; // remember this
bool modified = false;
- QDomElement el;
- QDomNodeList nl = dom.firstChild().firstChild().childNodes();
+ TQDomElement el;
+ TQDomNodeList nl = dom.firstChild().firstChild().childNodes();
progressBar->setTotalSteps(nl.count() - 1);
progressBar->setValue(0);
progressBar->setTextEnabled(true);
- QString path;
- QString tmpString;
+ TQString path;
+ TQString tmpString;
uint nlCount = nl.count();
for ( uint i = 0; i < nlCount; i++ )
{
@@ -86,7 +86,7 @@ bool ProjectList::readFromXML(QDomDocument &dom, const KURL &baseURL,
//remove non-existent local files
if ( url.isLocalFile() )
{
- QFileInfo fi( url.path() );
+ TQFileInfo fi( url.path() );
if ( !fi.exists() )
{
el.parentNode().removeChild( el );
@@ -128,7 +128,7 @@ bool ProjectList::removeFromListAndXML(const KURL &url)
{
ProjectURL *p = find(url);
if (p) {
- QDomElement el = p->domElement;
+ TQDomElement el = p->domElement;
el.parentNode().removeChild(el);
remove(url.url(-1));
return true;
@@ -162,25 +162,25 @@ bool ProjectList::isFolder(const KURL &url) const
}
-void ProjectList::insert(const QString & key, const ProjectURL * item)
+void ProjectList::insert(const TQString & key, const ProjectURL * item)
{
ProjectUrlList::insert(key, item);
}
-ProjectURL * ProjectList::find ( const QString & key ) const
+ProjectURL * ProjectList::find ( const TQString & key ) const
{
return ProjectUrlList::find(key);
}
-bool ProjectList::remove ( const QString & key )
+bool ProjectList::remove ( const TQString & key )
{
return ProjectUrlList::remove(key);
}
-void ProjectList::replace(const QString & key, const ProjectURL * item)
+void ProjectList::replace(const TQString & key, const ProjectURL * item)
{
ProjectUrlList::replace(key, item);
}