diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
commit | 769e63d24adf5c844137484f06a972fcce732d6a (patch) | |
tree | 5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/kmplayer_atom.cpp | |
parent | 0a8af92185eac74d48da1225e6053a0d66c078f5 (diff) | |
download | kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip |
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
Diffstat (limited to 'src/kmplayer_atom.cpp')
-rw-r--r-- | src/kmplayer_atom.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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; } |