OTHER: Some cleanups

Whitespace cleanups and small changes to SkinChooser
This commit is contained in:
Thomas Frauendorfer 2008-09-22 20:47:10 +02:00
parent 15677bdf39
commit 63def9b10b
4 changed files with 42 additions and 48 deletions

View file

@ -32,7 +32,7 @@
// Used to check for Protocolversion at compiletime
#include <xmmsc/xmmsc_idnumbers.h>
PlaylistModel::PlaylistModel (QObject *parent, XClient *client, const QString &name) : QAbstractItemModel (parent)
PlaylistModel::PlaylistModel (QObject *parent, XClient *client, const QString &name) : QAbstractItemModel (parent), m_current_pos (0)
{
// m_columns.append ("#");
m_columns.append ("Artist");
@ -50,16 +50,14 @@ PlaylistModel::PlaylistModel (QObject *parent, XClient *client, const QString &n
connect (client, SIGNAL(gotConnection (XClient *)), this, SLOT (got_connection (XClient *)));
connect (client->cache (), SIGNAL(entryChanged (uint32_t)), this, SLOT (entry_changed (uint32_t)));
if (name == QLatin1String ("_active")) {
m_isactive = true;
m_isactive = (name == QLatin1String ("_active"));
m_name = name;
if (client->isConnected ()) {
got_connection (client);
}
m_name = name;
if (client->isConnected ()) {
got_connection (client);
}
}
void

View file

@ -140,7 +140,6 @@ class PlaylistModel : public QAbstractItemModel
void getInfo (unsigned int id) const;
uint32_t m_current_pos;
bool m_isactive;