#ifndef TYPE_H #define TYPE_H #include #include static QString writeType( QTextStream& str, const QDomElement& r ) { Q_ASSERT( r.tagName() == "TYPE" ); if ( r.hasAttribute( "qleft" ) ) str << r.attribute("qleft") << " "; QString t = r.firstChild().toText().data(); t = t.replace( ">>", "> >" ); str << t; if ( r.hasAttribute( "qright" ) ) str << r.attribute("qright") << " "; else str << " "; return t; } #endif