mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Inbox needs to set its own TrackView on ContextView.
This commit is contained in:
@@ -80,13 +80,15 @@ InboxView::onMenuTriggered( int action )
|
|||||||
InboxPage::InboxPage( QWidget* parent )
|
InboxPage::InboxPage( QWidget* parent )
|
||||||
: PlaylistViewPage( parent )
|
: PlaylistViewPage( parent )
|
||||||
{
|
{
|
||||||
|
InboxView* inboxView = new InboxView( this );
|
||||||
view()->setCaption( tr( "Inbox Details" ) );
|
view()->setCaption( tr( "Inbox Details" ) );
|
||||||
|
|
||||||
setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::Inbox ) );
|
setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::Inbox ) );
|
||||||
|
|
||||||
view()->trackView()->setPlayableModel( ViewManager::instance()->inboxModel() );
|
TrackItemDelegate* delegate = new TrackItemDelegate( TrackItemDelegate::Inbox, inboxView, inboxView->proxyModel() );
|
||||||
view()->trackView()->setEmptyTip( tr( "Your friends have not shared any recommendations with you yet. Connect with them and share your musical gems!" ) );
|
inboxView->setPlaylistItemDelegate( delegate );
|
||||||
|
|
||||||
TrackItemDelegate* delegate = new TrackItemDelegate( TrackItemDelegate::Inbox, view()->trackView(), view()->trackView()->proxyModel() );
|
view()->setTrackView( inboxView );
|
||||||
view()->trackView()->setPlaylistItemDelegate( delegate );
|
inboxView->setPlayableModel( ViewManager::instance()->inboxModel() );
|
||||||
|
inboxView->setEmptyTip( tr( "Your friends have not shared any recommendations with you yet. Connect with them and share your musical gems!" ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user