summaryrefslogtreecommitdiffstats
path: root/khtml/xml/dom_xmlimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khtml/xml/dom_xmlimpl.cpp')
-rw-r--r--khtml/xml/dom_xmlimpl.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/khtml/xml/dom_xmlimpl.cpp b/khtml/xml/dom_xmlimpl.cpp
index 90ec2b352..121ad436a 100644
--- a/khtml/xml/dom_xmlimpl.cpp
+++ b/khtml/xml/dom_xmlimpl.cpp
@@ -391,7 +391,7 @@ void ProcessingInstructionImpl::checkStyleSheet()
// ### make sure this gets called when adding from javascript
XMLAttributeReader attrReader(DOMString(m_data).string());
bool attrsOk;
- QXmlAttributes attrs = attrReader.readAttrs(attrsOk);
+ TQXmlAttributes attrs = attrReader.readAttrs(attrsOk);
if (!attrsOk)
return;
if (attrs.value("type") != "text/css" && !attrs.value("type").isEmpty())
@@ -414,7 +414,7 @@ void ProcessingInstructionImpl::checkStyleSheet()
// ### some validation on the URL?
// ### FIXME charset
if (m_cachedSheet) m_cachedSheet->deref(this);
- m_cachedSheet = getDocument()->docLoader()->requestStyleSheet(getDocument()->completeURL(href.string()), QString::null);
+ m_cachedSheet = getDocument()->docLoader()->requestStyleSheet(getDocument()->completeURL(href.string()), TQString::null);
if (m_cachedSheet) {
getDocument()->addPendingSheet(); //before ref, because during the ref it might load!
m_cachedSheet->ref( this );
@@ -466,7 +466,7 @@ DOMString ProcessingInstructionImpl::toString() const
// -------------------------------------------------------------------------
-XMLAttributeReader::XMLAttributeReader(const QString& _attrString)
+XMLAttributeReader::XMLAttributeReader(const TQString& _attrString)
{
m_attrString = _attrString;
}
@@ -475,19 +475,19 @@ XMLAttributeReader::~XMLAttributeReader()
{
}
-QXmlAttributes XMLAttributeReader::readAttrs(bool &ok)
+TQXmlAttributes XMLAttributeReader::readAttrs(bool &ok)
{
// parse xml file
- QXmlInputSource source;
+ TQXmlInputSource source;
source.setData("<?xml version=\"1.0\"?><attrs "+m_attrString+" />");
- QXmlSimpleReader reader;
+ TQXmlSimpleReader reader;
reader.setContentHandler( this );
ok = reader.parse( source );
return attrs;
}
-bool XMLAttributeReader::startElement(const QString& /*namespaceURI*/, const QString& localName,
- const QString& /*qName*/, const QXmlAttributes& atts)
+bool XMLAttributeReader::startElement(const TQString& /*namespaceURI*/, const TQString& localName,
+ const TQString& /*qName*/, const TQXmlAttributes& atts)
{
if (localName == "attrs") {
attrs = atts;