1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

* Allow API users to set an empty tooltip for TrackViews.

This commit is contained in:
Christian Muehlhaeuser 2012-06-01 07:11:02 +02:00
parent 0a7b6c9a22
commit 218098e1ff
2 changed files with 9 additions and 0 deletions

View File

@ -173,6 +173,13 @@ TrackView::setPlayableModel( PlayableModel* model )
}
void
TrackView::setEmptyTip( const QString& tip )
{
m_overlay->setText( tip );
}
void
TrackView::onViewChanged()
{

View File

@ -60,6 +60,8 @@ public:
Tomahawk::ContextMenu* contextMenu() const { return m_contextMenu; }
AnimatedSpinner* loadingSpinner() const { return m_loadingSpinner; }
void setEmptyTip( const QString& tip );
virtual QWidget* widget() { return this; }
virtual Tomahawk::playlistinterface_ptr playlistInterface() const;