1 # -*- coding: utf-8 -*-
4 from PySide import QtCore
5 from PySide import QtGui
6 from PySide import QtDeclarative
9 class AlbumItem (QtCore.QObject):
11 def __init__ (self, title, artist, album_art):
12 QtCore.QObject.__init__(self)
15 self._album_art = album_art
24 return self._album_art
26 def _setAlbumArt (self, path):
27 print "Setting the new album art to", path
28 self._album_art = path
29 self.album_art_changed.emit ()
31 prop_changed = QtCore.Signal ()
32 album_art_changed = QtCore.Signal ()
34 title = QtCore.Property (unicode, _title, notify=prop_changed)
35 artist = QtCore.Property (unicode, _artist, notify=prop_changed)
36 album_art = QtCore.Property (unicode,
39 notify=album_art_changed)