summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGScriptElementImpl.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /ksvg/impl/SVGScriptElementImpl.cc
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksvg/impl/SVGScriptElementImpl.cc')
-rw-r--r--ksvg/impl/SVGScriptElementImpl.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/ksvg/impl/SVGScriptElementImpl.cc b/ksvg/impl/SVGScriptElementImpl.cc
index 9a211425..230adf25 100644
--- a/ksvg/impl/SVGScriptElementImpl.cc
+++ b/ksvg/impl/SVGScriptElementImpl.cc
@@ -22,7 +22,7 @@
#include <kio/job.h>
#include <kfilterdev.h>
-#include <qbuffer.h>
+#include <tqbuffer.h>
#include "SVGDocumentImpl.h"
#include "SVGAnimatedStringImpl.h"
@@ -35,7 +35,7 @@ using namespace KSVG;
#include "ksvg_bridge.h"
#include "ksvg_ecma.h"
-SVGScriptElementImpl::SVGScriptElementImpl(DOM::ElementImpl *impl) : QObject(), SVGElementImpl(impl), SVGURIReferenceImpl(), SVGExternalResourcesRequiredImpl()
+SVGScriptElementImpl::SVGScriptElementImpl(DOM::ElementImpl *impl) : TQObject(), SVGElementImpl(impl), SVGURIReferenceImpl(), SVGExternalResourcesRequiredImpl()
{
KSVG_EMPTY_FLAGS
@@ -66,7 +66,7 @@ void SVGScriptElementImpl::setAttributes()
KSVG_SET_ALT_ATTRIBUTE(Type, "text/ecmascript")
// Remote downloading
- QString href = m_href->baseVal().string();
+ TQString href = m_href->baseVal().string();
if(!href.isEmpty())
{
@@ -75,14 +75,14 @@ void SVGScriptElementImpl::setAttributes()
if(m_job == 0)
m_job = KIO::get(url, false, false);
- connect(m_job, SIGNAL(data(KIO::Job *, const QByteArray &)), this, SLOT(slotData(KIO::Job *, const QByteArray &)));
- connect(m_job, SIGNAL(result(KIO::Job *)), this, SLOT(slotResult(KIO::Job *)));
+ connect(m_job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)), this, TQT_SLOT(slotData(KIO::Job *, const TQByteArray &)));
+ connect(m_job, TQT_SIGNAL(result(KIO::Job *)), this, TQT_SLOT(slotResult(KIO::Job *)));
}
}
-void SVGScriptElementImpl::slotData(KIO::Job *, const QByteArray &data)
+void SVGScriptElementImpl::slotData(KIO::Job *, const TQByteArray &data)
{
- QDataStream dataStream(m_data, IO_WriteOnly | IO_Append);
+ TQDataStream dataStream(m_data, IO_WriteOnly | IO_Append);
dataStream.writeRawBytes(data.data(), data.size());
}
@@ -94,13 +94,13 @@ void SVGScriptElementImpl::slotResult(KIO::Job *)
m_data.resize(m_data.size() + 1);
m_data[m_data.size() - 1] = '\0';
- QBuffer buf(m_data);
- QIODevice *dev = KFilterDev::device(&buf, "application/x-gzip", false);
- QByteArray contents;
+ TQBuffer buf(m_data);
+ TQIODevice *dev = KFilterDev::device(&buf, "application/x-gzip", false);
+ TQByteArray contents;
if(dev->open(IO_ReadOnly))
contents = dev->readAll();
delete dev;
- m_text = QString::fromUtf8(contents.data());
+ m_text = TQString::fromUtf8(contents.data());
m_data.resize(0);
}
@@ -124,7 +124,7 @@ bool SVGScriptElementImpl::executeScript(DOM::Node node)
return SVGScriptElementImpl::executeScript(node, ownerDoc(), m_text);
}
-bool SVGScriptElementImpl::executeScript(DOM::Node node, SVGDocumentImpl *document, const QString &text)
+bool SVGScriptElementImpl::executeScript(DOM::Node node, SVGDocumentImpl *document, const TQString &text)
{
#ifdef KJS_VERBOSE
kdDebug(6070) << "SVGScriptElementImpl::executeScript n=" << node.nodeName().string().latin1() << "(" << (node.isNull() ? 0 : node.nodeType()) << ") " << text << endl;