From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/css/css_stylesheetimpl.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'khtml/css/css_stylesheetimpl.cpp') 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; + m_lstChildren = new TQPtrList; 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; + m_lstChildren = new TQPtrList; 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; + m_lstChildren = new TQPtrList; m_doc = static_cast(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; + m_lstChildren = new TQPtrList; 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; + m_lstChildren = new TQPtrList; 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 it ( styleSheets ); it.current(); ++it ) + for ( TQPtrListIterator 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 it(styleSheets); + TQPtrListIterator it(styleSheets); for (; it.current(); ++it) { if (!it.current()->isCSSStyleSheet() || !static_cast(it.current())->implicit()) ++l; @@ -351,7 +351,7 @@ unsigned long StyleSheetListImpl::length() const StyleSheetImpl *StyleSheetListImpl::item ( unsigned long index ) { unsigned long l = 0; - QPtrListIterator it(styleSheets); + TQPtrListIterator it(styleSheets); for (; it.current(); ++it) { if (!it.current()->isCSSStyleSheet() || !static_cast(it.current())->implicit()) { if (l == index) @@ -397,9 +397,9 @@ CSSRuleImpl *MediaListImpl::parentRule() const void MediaListImpl::deleteMedium( const DOMString &oldMedium ) { - const QValueList::Iterator itEnd = m_lstMedia.end(); + const TQValueList::Iterator itEnd = m_lstMedia.end(); - for ( QValueList::Iterator it = m_lstMedia.begin(); it != itEnd; ++it ) { + for ( TQValueList::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::ConstIterator itEnd = m_lstMedia.end(); + const TQValueList::ConstIterator itEnd = m_lstMedia.end(); - for ( QValueList::ConstIterator it = m_lstMedia.begin(); it != itEnd; ++it ) { + for ( TQValueList::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() ) -- cgit v1.2.1