summaryrefslogtreecommitdiffstats
path: root/khtml/css/css_stylesheetimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khtml/css/css_stylesheetimpl.cpp')
-rw-r--r--khtml/css/css_stylesheetimpl.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/khtml/css/css_stylesheetimpl.cpp b/khtml/css/css_stylesheetimpl.cpp
index 4743cd2e4..bf85c0d59 100644
--- a/khtml/css/css_stylesheetimpl.cpp
+++ b/khtml/css/css_stylesheetimpl.cpp
@@ -110,7 +110,7 @@ void StyleSheetImpl::setDisabled( bool disabled )
CSSStyleSheetImpl::CSSStyleSheetImpl(CSSStyleSheetImpl *parentSheet, DOMString href)
: StyleSheetImpl(parentSheet, href)
{
- m_lstChildren = new QPtrList<StyleBaseImpl>;
+ m_lstChildren = new TQPtrList<StyleBaseImpl>;
m_doc = parentSheet ? parentSheet->doc() : 0;
m_implicit = false;
m_namespaces = 0;
@@ -120,7 +120,7 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(CSSStyleSheetImpl *parentSheet, DOMString h
CSSStyleSheetImpl::CSSStyleSheetImpl(DOM::NodeImpl *parentNode, DOMString href, bool _implicit)
: StyleSheetImpl(parentNode, href)
{
- m_lstChildren = new QPtrList<StyleBaseImpl>;
+ m_lstChildren = new TQPtrList<StyleBaseImpl>;
m_doc = parentNode->getDocument();
m_implicit = _implicit;
m_namespaces = 0;
@@ -130,7 +130,7 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(DOM::NodeImpl *parentNode, DOMString href,
CSSStyleSheetImpl::CSSStyleSheetImpl(CSSRuleImpl *ownerRule, DOMString href)
: StyleSheetImpl(ownerRule, href)
{
- m_lstChildren = new QPtrList<StyleBaseImpl>;
+ m_lstChildren = new TQPtrList<StyleBaseImpl>;
m_doc = static_cast<CSSStyleSheetImpl*>(ownerRule->stylesheet())->doc();
m_implicit = false;
m_namespaces = 0;
@@ -140,7 +140,7 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(CSSRuleImpl *ownerRule, DOMString href)
CSSStyleSheetImpl::CSSStyleSheetImpl(DOM::NodeImpl *parentNode, CSSStyleSheetImpl *orig)
: StyleSheetImpl(parentNode, orig->m_strHref)
{
- m_lstChildren = new QPtrList<StyleBaseImpl>;
+ m_lstChildren = new TQPtrList<StyleBaseImpl>;
StyleBaseImpl *rule;
for ( rule = orig->m_lstChildren->first(); rule != 0; rule = orig->m_lstChildren->next() )
{
@@ -157,7 +157,7 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(CSSRuleImpl *ownerRule, CSSStyleSheetImpl *
: StyleSheetImpl(ownerRule, orig->m_strHref)
{
// m_lstChildren is deleted in StyleListImpl
- m_lstChildren = new QPtrList<StyleBaseImpl>;
+ m_lstChildren = new TQPtrList<StyleBaseImpl>;
StyleBaseImpl *rule;
for ( rule = orig->m_lstChildren->first(); rule != 0; rule = orig->m_lstChildren->next() )
{
@@ -318,7 +318,7 @@ void CSSStyleSheetImpl::setNonCSSHints()
StyleSheetListImpl::~StyleSheetListImpl()
{
- for ( QPtrListIterator<StyleSheetImpl> it ( styleSheets ); it.current(); ++it )
+ for ( TQPtrListIterator<StyleSheetImpl> it ( styleSheets ); it.current(); ++it )
it.current()->deref();
}
@@ -340,7 +340,7 @@ unsigned long StyleSheetListImpl::length() const
{
// hack so implicit BODY stylesheets don't get counted here
unsigned long l = 0;
- QPtrListIterator<StyleSheetImpl> it(styleSheets);
+ TQPtrListIterator<StyleSheetImpl> it(styleSheets);
for (; it.current(); ++it) {
if (!it.current()->isCSSStyleSheet() || !static_cast<CSSStyleSheetImpl*>(it.current())->implicit())
++l;
@@ -351,7 +351,7 @@ unsigned long StyleSheetListImpl::length() const
StyleSheetImpl *StyleSheetListImpl::item ( unsigned long index )
{
unsigned long l = 0;
- QPtrListIterator<StyleSheetImpl> it(styleSheets);
+ TQPtrListIterator<StyleSheetImpl> it(styleSheets);
for (; it.current(); ++it) {
if (!it.current()->isCSSStyleSheet() || !static_cast<CSSStyleSheetImpl*>(it.current())->implicit()) {
if (l == index)
@@ -397,9 +397,9 @@ CSSRuleImpl *MediaListImpl::parentRule() const
void MediaListImpl::deleteMedium( const DOMString &oldMedium )
{
- const QValueList<DOMString>::Iterator itEnd = m_lstMedia.end();
+ const TQValueList<DOMString>::Iterator itEnd = m_lstMedia.end();
- for ( QValueList<DOMString>::Iterator it = m_lstMedia.begin(); it != itEnd; ++it ) {
+ for ( TQValueList<DOMString>::Iterator it = m_lstMedia.begin(); it != itEnd; ++it ) {
if( (*it) == oldMedium ) {
m_lstMedia.remove( it );
return;
@@ -410,9 +410,9 @@ void MediaListImpl::deleteMedium( const DOMString &oldMedium )
DOM::DOMString MediaListImpl::mediaText() const
{
DOMString text;
- const QValueList<DOMString>::ConstIterator itEnd = m_lstMedia.end();
+ const TQValueList<DOMString>::ConstIterator itEnd = m_lstMedia.end();
- for ( QValueList<DOMString>::ConstIterator it = m_lstMedia.begin(); it != itEnd; ++it ) {
+ for ( TQValueList<DOMString>::ConstIterator it = m_lstMedia.begin(); it != itEnd; ++it ) {
text += *it;
text += ", ";
}
@@ -422,12 +422,12 @@ DOM::DOMString MediaListImpl::mediaText() const
void MediaListImpl::setMediaText(const DOM::DOMString &value)
{
m_lstMedia.clear();
- const QString val = value.string();
- const QStringList list = QStringList::split( ',', val );
+ const TQString val = value.string();
+ const TQStringList list = TQStringList::split( ',', val );
- const QStringList::ConstIterator itEnd = list.end();
+ const TQStringList::ConstIterator itEnd = list.end();
- for ( QStringList::ConstIterator it = list.begin(); it != itEnd; ++it )
+ for ( TQStringList::ConstIterator it = list.begin(); it != itEnd; ++it )
{
const DOMString medium = (*it).stripWhiteSpace();
if( !medium.isEmpty() )