diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/project/uploadprofiles.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-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/uploadprofiles.cpp')
-rw-r--r-- | quanta/project/uploadprofiles.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/quanta/project/uploadprofiles.cpp b/quanta/project/uploadprofiles.cpp index d32596ed..669971ce 100644 --- a/quanta/project/uploadprofiles.cpp +++ b/quanta/project/uploadprofiles.cpp @@ -15,7 +15,7 @@ ***************************************************************************/ // qt includes -#include <qobject.h> +#include <tqobject.h> // KDE includes #include <kiconloader.h> @@ -34,14 +34,14 @@ UploadProfiles::UploadProfiles() : UploadProfileMap() } -void UploadProfiles::readFromXML(const QDomDocument &dom) +void UploadProfiles::readFromXML(const TQDomDocument &dom) { clear(); // empty the list m_profilesNode = dom.firstChild().firstChild().namedItem("uploadprofiles"); if (m_profilesNode.isNull()) return; - QDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile"); + TQDomNodeList profileList = m_profilesNode.toElement().elementsByTagName("profile"); UploadProfile newProfile; for (uint i = 0; i < profileList.count(); i++) { @@ -53,13 +53,13 @@ void UploadProfiles::readFromXML(const QDomDocument &dom) } -bool UploadProfiles::removeFromMapAndXML(const QString &name) +bool UploadProfiles::removeFromMapAndXML(const TQString &name) { UploadProfiles::Iterator it = find(name); if ( it == end() ) return false; // ok now remove - QDomElement el = (*it).domElement; + TQDomElement el = (*it).domElement; el.parentNode().removeChild(el); erase(name); return true; @@ -79,9 +79,9 @@ void UploadProfiles::clear() UploadProfileMap::clear(); } -QWidget * UploadProfiles::createTreeview(const UploadProfile &profile) +TQWidget * UploadProfiles::createTreeview(const UploadProfile &profile) { - QWidget *widget = 0L; + TQWidget *widget = 0L; KURL kurl = url(profile.domElement); if (kurl.isValid() && ! kurl.isEmpty()) { @@ -94,26 +94,26 @@ QWidget * UploadProfiles::createTreeview(const UploadProfile &profile) } -KURL UploadProfiles::url(const QDomElement &e) +KURL UploadProfiles::url(const TQDomElement &e) { - QString protocol = e.attribute("remote_protocol","ftp") + "://"; - QString s = protocol; - QString host = e.attribute("remote_host",""); + TQString protocol = e.attribute("remote_protocol","ftp") + "://"; + TQString s = protocol; + TQString host = e.attribute("remote_host",""); s += host; - QString port = e.attribute("remote_port",""); + TQString port = e.attribute("remote_port",""); if (! port.isEmpty()) { s += ":" + port; } s += e.attribute("remote_path",""); KURL url = KURL::fromPathOrURL(s); - QString user = e.attribute("user",""); + TQString user = e.attribute("user",""); if (!user.isEmpty()) { url.setUser(user); } // check if we know the password if ( !user.isEmpty() && Project::ref()->keepPasswd ) { - QString password = Project::ref()->password(protocol + user + "@" + host); + TQString password = Project::ref()->password(protocol + user + "@" + host); url.setPass(password); } return url; |