Place MPDConnection in its own thread, and use signals/slots to communicate with it.

This commit is contained in:
craig
2011-12-06 17:44:06 +00:00
parent 4445f4d8fa
commit 11c51064be
23 changed files with 383 additions and 359 deletions

View File

@@ -334,6 +334,12 @@ void PlaylistTableModel::updateCurrentSong(quint32 id)
emit dataChanged(index(getRowById(song_id), 0), index(getRowById(song_id), 2));
}
void PlaylistTableModel::clear()
{
songs=QList<Song>();
reset();
}
void PlaylistTableModel::updatePlaylist(const QList<Song> &songs)
{
this->songs = songs;