mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
* Restore the empty-tooltip when filtering is done.
This commit is contained in:
@@ -176,6 +176,7 @@ TrackView::setPlayableModel( PlayableModel* model )
|
|||||||
void
|
void
|
||||||
TrackView::setEmptyTip( const QString& tip )
|
TrackView::setEmptyTip( const QString& tip )
|
||||||
{
|
{
|
||||||
|
m_emptyTip = tip;
|
||||||
m_overlay->setText( tip );
|
m_overlay->setText( tip );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -508,8 +509,17 @@ TrackView::onFilterChanged( const QString& )
|
|||||||
m_overlay->show();
|
m_overlay->show();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
if ( model()->trackCount() )
|
if ( model()->trackCount() )
|
||||||
|
{
|
||||||
m_overlay->hide();
|
m_overlay->hide();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_overlay->setText( m_emptyTip );
|
||||||
|
m_overlay->show();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -137,6 +137,7 @@ private:
|
|||||||
OverlayWidget* m_overlay;
|
OverlayWidget* m_overlay;
|
||||||
AnimatedSpinner* m_loadingSpinner;
|
AnimatedSpinner* m_loadingSpinner;
|
||||||
|
|
||||||
|
QString m_emptyTip;
|
||||||
bool m_resizing;
|
bool m_resizing;
|
||||||
bool m_dragging;
|
bool m_dragging;
|
||||||
QRect m_dropRect;
|
QRect m_dropRect;
|
||||||
@@ -147,7 +148,6 @@ private:
|
|||||||
QModelIndex m_contextMenuIndex;
|
QModelIndex m_contextMenuIndex;
|
||||||
|
|
||||||
Tomahawk::query_ptr m_autoPlaying;
|
Tomahawk::query_ptr m_autoPlaying;
|
||||||
|
|
||||||
Tomahawk::ContextMenu* m_contextMenu;
|
Tomahawk::ContextMenu* m_contextMenu;
|
||||||
|
|
||||||
QTimer m_timer;
|
QTimer m_timer;
|
||||||
|
Reference in New Issue
Block a user