diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmxmlparser.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-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 'kpovmodeler/pmxmlparser.cpp')
-rw-r--r-- | kpovmodeler/pmxmlparser.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kpovmodeler/pmxmlparser.cpp b/kpovmodeler/pmxmlparser.cpp index 520b19c0..11d42015 100644 --- a/kpovmodeler/pmxmlparser.cpp +++ b/kpovmodeler/pmxmlparser.cpp @@ -17,7 +17,7 @@ #include "pmxmlparser.h" -#include <qbuffer.h> +#include <tqbuffer.h> #include <klocale.h> #include "pmpart.h" @@ -27,13 +27,13 @@ #include "pmdocumentformat.h" #include "pmdebug.h" -PMXMLParser::PMXMLParser( PMPart* part, QIODevice* dev ) +PMXMLParser::PMXMLParser( PMPart* part, TQIODevice* dev ) : PMParser( part, dev ) { init( ); } -PMXMLParser::PMXMLParser( PMPart* part, const QByteArray& array ) +PMXMLParser::PMXMLParser( PMPart* part, const TQByteArray& array ) : PMParser( part, array ) { init( ); @@ -56,7 +56,7 @@ bool PMXMLParser::initDocument( ) { if( !m_pDoc ) { - m_pDoc = new QDomDocument( "KPOVMODELER" ); + m_pDoc = new TQDomDocument( "KPOVMODELER" ); if( m_pDoc->setContent( m_pDevice ) ) return true; else @@ -73,10 +73,10 @@ void PMXMLParser::topParse( ) { if( initDocument( ) ) { - QDomElement e = m_pDoc->documentElement( ); + TQDomElement e = m_pDoc->documentElement( ); // read the format number // assume 1.0 on error - QString fstring = e.attribute( "majorFormat", "1" ); + TQString fstring = e.attribute( "majorFormat", "1" ); bool ok = true; int format = fstring.toInt( &ok ); if( !ok || ( format < 1 ) ) @@ -117,14 +117,14 @@ void PMXMLParser::topParse( ) } } -void PMXMLParser::parseChildObjects( QDomElement& e, PMObject* parent ) +void PMXMLParser::parseChildObjects( TQDomElement& e, PMObject* parent ) { - QDomNode c = e.firstChild( ); + TQDomNode c = e.firstChild( ); while( !c.isNull( ) ) { if( c.isElement( ) ) { - QDomElement ce = c.toElement( ); + TQDomElement ce = c.toElement( ); PMPrototypeManager* m = m_pPart->prototypeManager( ); PMObject* obj = m->newObject( m->className( ce.tagName( ) ) ); if( obj ) @@ -150,21 +150,21 @@ void PMXMLParser::parseChildObjects( QDomElement& e, PMObject* parent ) } -void PMXMLParser::quickParse( QStringList& list ) +void PMXMLParser::quickParse( TQStringList& list ) { if( initDocument( ) ) { - QDomElement e = m_pDoc->documentElement( ); + TQDomElement e = m_pDoc->documentElement( ); if( ( e.tagName( ) == "objects" ) || ( e.tagName( ) == "scene" ) ) { - QDomNode c = e.firstChild( ); + TQDomNode c = e.firstChild( ); while( !c.isNull( ) ) { if( c.isElement( ) ) { - QDomElement ce = c.toElement( ); - QString type = m_pPart->prototypeManager( )->className( ce.tagName( ) ); + TQDomElement ce = c.toElement( ); + TQString type = m_pPart->prototypeManager( )->className( ce.tagName( ) ); if( !type.isNull( ) ) list.append( type ); } |