mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
* Allow API users to set an empty tooltip for TrackViews.
This commit is contained in:
@@ -173,6 +173,13 @@ TrackView::setPlayableModel( PlayableModel* model )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
TrackView::setEmptyTip( const QString& tip )
|
||||||
|
{
|
||||||
|
m_overlay->setText( tip );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TrackView::onViewChanged()
|
TrackView::onViewChanged()
|
||||||
{
|
{
|
||||||
|
@@ -60,6 +60,8 @@ public:
|
|||||||
Tomahawk::ContextMenu* contextMenu() const { return m_contextMenu; }
|
Tomahawk::ContextMenu* contextMenu() const { return m_contextMenu; }
|
||||||
AnimatedSpinner* loadingSpinner() const { return m_loadingSpinner; }
|
AnimatedSpinner* loadingSpinner() const { return m_loadingSpinner; }
|
||||||
|
|
||||||
|
void setEmptyTip( const QString& tip );
|
||||||
|
|
||||||
virtual QWidget* widget() { return this; }
|
virtual QWidget* widget() { return this; }
|
||||||
virtual Tomahawk::playlistinterface_ptr playlistInterface() const;
|
virtual Tomahawk::playlistinterface_ptr playlistInterface() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user