mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
fix style
This commit is contained in:
parent
5b87f97320
commit
a17635c89d
@ -84,13 +84,13 @@ XSPFLoader::gotBody()
|
||||
QDomNodeList tracklist;
|
||||
QDomElement n = docElement.firstChildElement();
|
||||
for ( ; !n.isNull(); n = n.nextSiblingElement() ) {
|
||||
if (n.namespaceURI() == NS && n.localName() == "title") {
|
||||
if (n.namespaceURI() == m_NS && n.localName() == "title") {
|
||||
origTitle = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "creator") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "creator") {
|
||||
m_creator = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "info") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "info") {
|
||||
m_info = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "trackList") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "trackList") {
|
||||
tracklist = n.childNodes();
|
||||
}
|
||||
}
|
||||
@ -106,15 +106,15 @@ XSPFLoader::gotBody()
|
||||
QString artist, album, track, duration, annotation;
|
||||
QDomElement n = e.firstChildElement();
|
||||
for ( ; !n.isNull(); n = n.nextSiblingElement() ) {
|
||||
if (n.namespaceURI() == NS && n.localName() == "duration") {
|
||||
if (n.namespaceURI() == m_NS && n.localName() == "duration") {
|
||||
duration = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "annotation") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "annotation") {
|
||||
annotation = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "creator") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "creator") {
|
||||
artist = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "album") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "album") {
|
||||
album = n.text();
|
||||
} else if (n.namespaceURI() == NS && n.localName() == "title") {
|
||||
} else if (n.namespaceURI() == m_NS && n.localName() == "title") {
|
||||
track = n.text();
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ public:
|
||||
explicit XSPFLoader( bool autoCreate = true, QObject* parent = 0 )
|
||||
: QObject( parent )
|
||||
, m_autoCreate( autoCreate )
|
||||
, NS("http://xspf.org/ns/0/")
|
||||
, m_NS("http://xspf.org/ns/0/")
|
||||
{}
|
||||
|
||||
virtual ~XSPFLoader()
|
||||
@ -48,11 +48,11 @@ private slots:
|
||||
void networkError( QNetworkReply::NetworkError e );
|
||||
|
||||
private:
|
||||
QString NS;
|
||||
void reportError();
|
||||
void gotBody();
|
||||
|
||||
bool m_autoCreate;
|
||||
QString m_NS;
|
||||
QList< Tomahawk::plentry_ptr > m_entries;
|
||||
QString m_title, m_info, m_creator;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user