summaryrefslogtreecommitdiffstats
path: root/languages/python/pydoc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/python/pydoc.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/python/pydoc.cpp')
-rw-r--r--languages/python/pydoc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/languages/python/pydoc.cpp b/languages/python/pydoc.cpp
index 79f184d7..4b70e170 100644
--- a/languages/python/pydoc.cpp
+++ b/languages/python/pydoc.cpp
@@ -5,7 +5,7 @@
#include <sys/stat.h>
#include <unistd.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kstandarddirs.h>
#include <kinstance.h>
#include <kprocess.h>
@@ -16,7 +16,7 @@
using namespace KIO;
-PydocProtocol::PydocProtocol(const QCString &pool, const QCString &app)
+PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app)
: SlaveBase("pydoc", pool, app), key()
{
python = KGlobal::dirs()->findExe("python");
@@ -33,7 +33,7 @@ void PydocProtocol::get(const KURL& url)
mimeType("text/html");
key = url.path();
- QString cmd = KProcess::quote(python);
+ TQString cmd = KProcess::quote(python);
cmd += " ";
cmd += KProcess::quote(script);
cmd += " -w ";
@@ -41,7 +41,7 @@ void PydocProtocol::get(const KURL& url)
FILE *fd = popen(cmd.local8Bit().data(), "r");
char buffer[4096];
- QByteArray array;
+ TQByteArray array;
while (!feof(fd)) {
int n = fread(buffer, 1, 2048, fd);
@@ -66,9 +66,9 @@ void PydocProtocol::mimetype(const KURL&)
}
-QCString PydocProtocol::errorMessage()
+TQCString PydocProtocol::errorMessage()
{
- return QCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in pydoc").local8Bit() + "</body></html>" );
+ return TQCString( "<html><body bgcolor=\"#FFFFFF\">" + i18n("Error in pydoc").local8Bit() + "</body></html>" );
}