mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
* OverlayWidget uses PlayableProxyModel now.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QPropertyAnimation>
|
#include <QPropertyAnimation>
|
||||||
|
|
||||||
|
#include "PlayableProxyModel.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
#define CORNER_ROUNDNESS 8.0
|
#define CORNER_ROUNDNESS 8.0
|
||||||
@@ -129,7 +130,8 @@ OverlayWidget::shown() const
|
|||||||
void
|
void
|
||||||
OverlayWidget::onViewChanged()
|
OverlayWidget::onViewChanged()
|
||||||
{
|
{
|
||||||
if ( m_parent->model()->rowCount() )
|
PlayableProxyModel* model = qobject_cast<PlayableProxyModel*>( m_parent->model() );
|
||||||
|
if ( model && ( model->rowCount( QModelIndex() ) || model->isLoading() ) )
|
||||||
{
|
{
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user