PlayableItem::PlayableItem( const Tomahawk::plentry_ptr& entry, PlayableItem* parent, int row ) : QObject( parent ) , m_entry( entry ) , m_query( entry->query() ) , m_parent( parent ) { init( row ); }
PlayableItem::PlayableItem( const Tomahawk::plentry_ptr& entry, PlayableItem* parent, int row ) : QObject( parent ) , m_entry( entry ) { m_query = entry->query(); init( parent, row ); connect( m_query->track().data(), SIGNAL( socialActionsLoaded() ), SIGNAL( dataChanged() ) ); connect( m_query->track().data(), SIGNAL( updated() ), SIGNAL( dataChanged() ) ); connect( m_query.data(), SIGNAL( resultsChanged() ), SLOT( onResultsChanged() ) ); }
TrackModelItem::TrackModelItem( const Tomahawk::plentry_ptr& entry, TrackModelItem* parent, int row ) : QObject( parent ) , m_entry( entry ) { setupItem( entry->query(), parent, row ); }