mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
* Set empty-tooltips for Loved-, Recent Additions- and Recent Plays views.
This commit is contained in:
@@ -506,6 +506,7 @@ SourceItem::lovedTracksClicked()
|
|||||||
PlaylistLargeItemDelegate* del = new PlaylistLargeItemDelegate( PlaylistLargeItemDelegate::LovedTracks, view, view->proxyModel() );
|
PlaylistLargeItemDelegate* del = new PlaylistLargeItemDelegate( PlaylistLargeItemDelegate::LovedTracks, view, view->proxyModel() );
|
||||||
connect( del, SIGNAL( updateIndex( QModelIndex ) ), view, SLOT( update( QModelIndex ) ) );
|
connect( del, SIGNAL( updateIndex( QModelIndex ) ), view, SLOT( update( QModelIndex ) ) );
|
||||||
view->setItemDelegate( del );
|
view->setItemDelegate( del );
|
||||||
|
view->setEmptyTip( tr( "Sorry, we could not find any loved tracks!" ) );
|
||||||
|
|
||||||
m_lovedTracksPage = view;
|
m_lovedTracksPage = view;
|
||||||
}
|
}
|
||||||
@@ -546,6 +547,7 @@ SourceItem::latestAdditionsClicked()
|
|||||||
|
|
||||||
cv->setPlayableModel( raModel );
|
cv->setPlayableModel( raModel );
|
||||||
cv->sortByColumn( PlayableModel::Age, Qt::DescendingOrder );
|
cv->sortByColumn( PlayableModel::Age, Qt::DescendingOrder );
|
||||||
|
cv->setEmptyTip( tr( "Sorry, we could not find any recent additions!" ) );
|
||||||
|
|
||||||
m_latestAdditionsPage = cv;
|
m_latestAdditionsPage = cv;
|
||||||
}
|
}
|
||||||
@@ -585,6 +587,7 @@ SourceItem::recentPlaysClicked()
|
|||||||
pv->setItemDelegate( del );
|
pv->setItemDelegate( del );
|
||||||
|
|
||||||
pv->setPlaylistModel( raModel );
|
pv->setPlaylistModel( raModel );
|
||||||
|
pv->setEmptyTip( tr( "Sorry, we could not find any recent plays!" ) );
|
||||||
|
|
||||||
m_recentPlaysPage = pv;
|
m_recentPlaysPage = pv;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user