From 769e63d24adf5c844137484f06a972fcce732d6a Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 06:10:56 +0000 Subject: TQt4 port kmplayer This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kmplayer_atom.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/kmplayer_atom.cpp') diff --git a/src/kmplayer_atom.cpp b/src/kmplayer_atom.cpp index da79902..a35c649 100644 --- a/src/kmplayer_atom.cpp +++ b/src/kmplayer_atom.cpp @@ -22,7 +22,7 @@ using namespace KMPlayer; -NodePtr ATOM::Feed::childFromTag (const QString & tag) { +NodePtr ATOM::Feed::childFromTag (const TQString & tag) { if (!strcmp (tag.latin1 (), "entry")) return new ATOM::Entry (m_doc); else if (!strcmp (tag.latin1 (), "link")) @@ -40,7 +40,7 @@ void ATOM::Feed::closed () { } } -NodePtr ATOM::Entry::childFromTag (const QString & tag) { +NodePtr ATOM::Entry::childFromTag (const TQString & tag) { if (!strcmp (tag.latin1 (), "link")) return new ATOM::Link (m_doc); else if (!strcmp (tag.latin1 (), "content")) @@ -65,8 +65,8 @@ Node::PlayType ATOM::Link::playType () { } void ATOM::Link::closed () { - QString href; - QString rel; + TQString href; + TQString rel; for (AttributePtr a = attributes ()->first (); a; a = a->nextSibling ()) { if (a->name () == StringPool::attr_href) href = a->value (); @@ -75,7 +75,7 @@ void ATOM::Link::closed () { else if (a->name () == "rel") rel = a->value (); } - if (!href.isEmpty () && rel == QString::fromLatin1 ("enclosure")) + if (!href.isEmpty () && rel == TQString::tqfromLatin1 ("enclosure")) src = href; else if (pretty_name.isEmpty ()) pretty_name = href; @@ -86,13 +86,13 @@ void ATOM::Content::closed () { if (a->name () == StringPool::attr_src) src = a->value (); else if (a->name () == StringPool::attr_type) { - QString v = a->value ().lower (); - if (v == QString::fromLatin1 ("text")) - mimetype = QString::fromLatin1 ("text/plain"); - else if (v == QString::fromLatin1 ("html")) - mimetype = QString::fromLatin1 ("text/html"); - else if (v == QString::fromLatin1 ("xhtml")) - mimetype = QString::fromLatin1 ("application/xhtml+xml"); + TQString v = a->value ().lower (); + if (v == TQString::tqfromLatin1 ("text")) + mimetype = TQString::tqfromLatin1 ("text/plain"); + else if (v == TQString::tqfromLatin1 ("html")) + mimetype = TQString::tqfromLatin1 ("text/html"); + else if (v == TQString::tqfromLatin1 ("xhtml")) + mimetype = TQString::tqfromLatin1 ("application/xhtml+xml"); else mimetype = v; } -- cgit v1.2.1