summaryrefslogtreecommitdiffstats
path: root/quanta/project/uploadprofiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project/uploadprofiles.cpp')
-rw-r--r--quanta/project/uploadprofiles.cpp28
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;